{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-86431","id":"CVE-2026-86431","title":"commonmark before 2.9.1 XSS via AttributesExtension form feed bypass","description":"league/commonmark (thephpleague/commonmark) versions >= 2.7.0 and < 2.9.1 contain a cross-site scripting vulnerability in the AttributesExtension. Prefixing an attribute name with a single U+000C form feed byte (e.g. {\\x0Conclick=\"alert(1)\"}) bypasses the AttributesHelper::filterAttributes() 'on*' event-handler filter because PHP's trim() does not strip U+000C, causing the attribute to be written ","descriptionLong":"league/commonmark (thephpleague/commonmark) versions >= 2.7.0 and < 2.9.1 contain a cross-site scripting vulnerability in the AttributesExtension. Prefixing an attribute name with a single U+000C form feed byte (e.g. {\\x0Conclick=\"alert(1)\"}) bypasses the AttributesHelper::filterAttributes() 'on*' event-handler filter because PHP's trim() does not strip U+000C, causing the attribute to be written verbatim into the output where browsers parse it as a genuine event handler. The same prefix also defeats the allow_unsafe_links check, allowing javascript: URIs through href/src attributes even when allow_unsafe_links is false. Exploitation requires processing untrusted Markdown with the AttributesExtension enabled; the injected script executes when the rendered HTML is viewed. Fixed in 2.9.1.","published":"2026-09-07T12:53:51.246Z","updated":"2026-10-28T02:31:13.483277330Z","reserved":"2026-09-07T12:34:31.457Z","status":"Analyzed","rejected":false,"assigner":"VulnCheck","metric":{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","rating":"medium","source":"VulnCheck"},"metrics":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","rating":"medium","source":"VulnCheck"},{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/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","rating":"medium","source":"vulncheck.com"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","rating":"unrated","source":"OSV"},{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"high","source":"VulnCheck"},{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"high","source":"vulncheck.com"},{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"high","source":"GitHub"}],"rating":"medium","products":["thephpleague commonmark"],"affectedProducts":[{"vendor":"thephpleague","product":"commonmark","defaultStatus":"unaffected","versions":[{"version":"2.7.0","status":"affected","versionType":"semver","lessThan":"2.9.1"},{"version":"2.9.1","status":"unaffected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"league/commonmark","purl":"pkg:composer/league/commonmark","ranges":[">=2.7.0 <2.9.1"],"fixed":["2.9.1"],"advisory":"GHSA-f8fg-pg57-v4j8"}],"cwes":["CWE-79","CWE-86"],"aliases":["GHSA-f8fg-pg57-v4j8"],"references":[{"url":"https://github.com/thephpleague/commonmark/security/advisories/GHSA-f8fg-pg57-v4j8","tags":["vendor-advisory","Exploit","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/thephpleague/commonmark/commit/43207253ea5f14867c77c697cd3838c446cadcea","tags":["patch","Patch","fix"]},{"url":"https://www.vulncheck.com/advisories/commonmark-before-2.9.1-xss-via-attributesextension-form-feed-bypass","tags":["third-party-advisory","Patch","Third Party Advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/86xxx/CVE-2026-86431.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-86431","tags":["advisory"]},{"url":"https://github.com/thephpleague/commonmark/commit/dfcdf4554c16aa37c15e3a5ee3243ee26147c239","tags":["web"]},{"url":"https://github.com/thephpleague/commonmark","tags":["package"]},{"url":"https://github.com/thephpleague/commonmark/releases/tag/2.9.1","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00388,"epssPercentile":0.33774,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-86431","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-86431","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-86431","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-f8fg-pg57-v4j8","ok":true,"note":"GHSA-f8fg-pg57-v4j8"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-86431","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}