discourse/discourse
Functions and files changed by CVE fixes in this repository.
Latest located fix
Overview
159 published CVEs have a fix traced to functions in discourse/discourse, the earliest published in 2019. Those fixes changed 498 distinct functions across 302 files, in 2,768 patch hunks.
Among the 11,752 repositories tracked here, discourse/discourse ranks #14 by the number of CVEs with a located fix.
Most patched functions
Functions in discourse/discourse changed by the most distinct patches.
- 1selflib/pretty_text.rb8 patches · 9 CVEs2026
- 2publish_updateplugins/discourse-ai/lib/ai_bot/playground.rb8 patches · 6 CVEs2026
- 3publish_final_updateplugins/discourse-ai/lib/ai_bot/playground.rb8 patches · 6 CVEs2026
- 4reply_toplugins/discourse-ai/lib/ai_bot/playground.rb8 patches · 6 CVEs2026
- 5finishplugins/discourse-ai/lib/ai_bot/playground.rb8 patches · 6 CVEs2026
- 6left_joinsapp/models/reviewable.rb8 patches · 5 CVEs2026
- 7can_delete_own_topiclib/guardian/topic_guardian.rb8 patches · 5 CVEs2026
- 8anonymous_default_navigation_menu_tagsapp/serializers/site_serializer.rb8 patches · 5 CVEs2026
- 9applyLocalDatesplugins/discourse-local-dates/assets/javascripts/initializers/discourse-local-dates.js6 patches · 6 CVEs2026
- 10patchconfig/routes.rb6 patches · 4 CVEs2022 to 2025
- 11selflib/middleware/anonymous_cache.rb5 patches · 7 CVEs2022 to 2026
- 12selfapp/models/invite_redeemer.rb5 patches · 2 CVEs2022
- 13selflib/onebox/engine.rb4 patches · 10 CVEs2026
- 14outputplugins/chat/lib/discourse_workflows/nodes/chat_message_created/v1.rb4 patches · 8 CVEs2026
- 15excerptplugins/chat/app/serializers/chat/message_serializer.rb4 patches · 8 CVEs2026
Most patched files
Files in discourse/discourse changed by the most CVE fixes.
- 1lib/onebox/engine.rb10 CVEs · 1 functions
- 2lib/middleware/anonymous_cache.rb9 CVEs · 5 functions
- 3lib/pretty_text.rb9 CVEs · 4 functions
- 4frontend/pretty-text/addon/sanitizer.js9 CVEs · 2 functions
- 5plugins/chat/app/models/chat/message.rb8 CVEs · 2 functions
- 6app/models/concerns/has_url.rb8 CVEs · 1 functions
- 7frontend/discourse/app/instance-initializers/video-placeholder.js8 CVEs · 1 functions
- 8lib/pretty_text/helpers.rb8 CVEs · 1 functions
- 9plugins/chat/app/models/chat/thread.rb8 CVEs · 1 functions
- 10plugins/chat/app/serializers/chat/in_reply_to_serializer.rb8 CVEs · 1 functions
Fix size
How much code a CVE fix in discourse/discourse changes, with backports counted once.
Latest CVEs
The most recently published CVEs with a fix located in discourse/discourse, and the functions each fix changed.
- High · CVSS 7.5EPSS 0.5%2026-10-14
- High · CVSS 7.5EPSS 0.5%2026-10-14
- High · CVSS 7.7EPSS 0.4%2026-10-14
- Medium · CVSS 6.4EPSS 0.2%2026-09-24
- Medium · CVSS 5.0EPSS 0.3%2026-09-24
- Medium · CVSS 5.4EPSS 0.2%2026-09-24
- Medium · CVSS 4.3EPSS 0.1%2026-09-24
- High · CVSS 8.7EPSS 0.3%2026-09-24
- High · CVSS 7.2EPSS 0.3%2026-09-24
- Medium · CVSS 6.5EPSS 0.3%2026-09-24
- Medium · CVSS 5.4EPSS 0.2%2026-09-24
- Medium · CVSS 4.2EPSS 0.2%2026-09-24
Get an alert for each new discourse/discourse CVE, with the patched functions and AI-written analysis.
Monitor these CVEsOther repositories
Repositories with a similar number of located CVE fixes.
Frequently asked questions
Common questions about CVE fixes in discourse/discourse.
- How many CVEs have a located fix in discourse/discourse?
- 159 published CVEs have a fix traced to functions in discourse/discourse, touching 498 functions across 302 files.
- Which function in discourse/discourse has been patched most often?
- self in lib/pretty_text.rb has been changed by 8 distinct patches, fixing 9 CVEs, from 2026 to 2026.
- How large is a typical CVE fix in discourse/discourse?
- The median fix changes 20 lines. 50% of fixes change 20 lines or fewer, and 29% change a single function.
- How is a fix located to a function?
- The upstream fix commit for each CVE is fetched and its diff is split into hunks. Each hunk is attributed to the function, method or type it changes, using the definition the diff itself names. Backports of the same fix to stable branches are counted once.
References
- discourse/discourse on GitHub (opens in a new tab)
- Patched functions directory
- CWE directory: the weakness types behind these fixes
Fix locations are computed by RadicalNotion.AI from the upstream patch diff of each CVE. CVE data is sourced from the CVE Program.
Track discourse/discourse CVEs
Get an alert when a new CVE lands in this repository, with the patched functions and AI-written remediation guidance.