CVE-2026-30838
Last modified
CVE-2026-30838 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. league/commonmark is a PHP Markdown parser. Prior to version 2.8.1, the DisallowedRawHtml extension can be bypassed by inserting a newline, tab, or other ASCII whitespace character between a disallowed HTML tag name and the closing >. EPSS estimates a 0.22% chance of exploitation in the next 30 days.
Description
league/commonmark is a PHP Markdown parser. Prior to version 2.8.1, the DisallowedRawHtml extension can be bypassed by inserting a newline, tab, or other ASCII whitespace character between a disallowed HTML tag name and the closing >. For example, <script\n> would pass through unfiltered and be rendered as a valid HTML tag by browsers. This is a cross-site scripting (XSS) vector for any application that relies on this extension to sanitize untrusted user input. All applications using the DisallowedRawHtml extension to process untrusted markdown are affected. Applications that use a dedicated HTML sanitizer (such as HTML Purifier) on the rendered output are not affected. This issue has been patched in version 2.8.1.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Thephpleague | Commonmark | < 2.8.1 |
References
- https://github.com/thephpleague/commonmark/security/advisories/GHSA-4v6x-c7xx-hw9fMitigation, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-30838?
How severe is CVE-2026-30838?
How do I fix CVE-2026-30838?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-30832Soft Serve is a self-hostable Git server for the command lin…9.1
- CVE-2026-30833Rocket.Chat is an open-source, secure, fully customizable co…5.3
- CVE-2026-30834PinchTab is a standalone HTTP server that gives AI agents di…7.5
- CVE-2026-30835Parse Server is an open source backend that can be deployed …5.3
- CVE-2026-30836Step CA is an online certificate authority for secure, autom…10
- CVE-2026-30837Elysia is a Typescript framework for request validation, typ…7.5
- CVE-2026-30839Wallos is an open-source, self-hostable personal subscriptio…4.3
- CVE-2026-3084GStreamer H.266 Codec Parser Integer Underflow Remote Code E…7.8
- CVE-2026-30840Wallos is an open-source, self-hostable personal subscriptio…8.8
- CVE-2026-30841Wallos is an open-source, self-hostable personal subscriptio…6.1
- CVE-2026-30842Wallos is an open-source, self-hostable personal subscriptio…4.3
- CVE-2026-30843Wekan is an open source kanban tool built with Meteor. Versi…6.5
Are you affected by CVE-2026-30838?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
