Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
The league/commonmark package, versions 1.3.0 up to 2.10.2 (fixed in 2.10.2), has a flaw in the DisallowedRawHtml extension: a disallowed tag name at the very end of a raw HTML line, such as a bare script or iframe opening tag, is not escaped. An attacker who can post Markdown can use this to inject script into rendered pages when html_input is set to allow, which is the default with the GFM extension, and no account beyond posting content is described. Upgrade to league/commonmark 2.10.2 or later; setting html_input to escape or strip also mitigates the issue.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 5.3 | Medium | 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N | CNA (VulnCheck) |
- CISA KEV Not listed.
- EPSS 0.0025, the 16th percentile, on 10 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 21 Sept 2026, 12:30 UTC Published by the maintainers as a GitHub repository advisory
- 31 Oct 2026, 13:54 UTC First seen by agentprime
- 31 Oct 2026, 13:54 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-97jj-33gv-5xf9
- OSV: GHSA-97jj-33gv-5xf9
- github.com/thephpleague/commonmark/security/advisories/GHSA-97jj-33gv-5xf9
- github.com/thephpleague/commonmark/commit/411afcc2a7402756d96c89af8882c724d12d47ca
- github.com/thephpleague/commonmark
- github.com/thephpleague/commonmark/releases/tag/2.10.2