{"id":"EEF-CVE-2026-137164","summary":"Author-supplied CSS classes pass the markdown sanitizer in Varsel","details":"## Summary\n\nPermissive List of Allowed Inputs vulnerability in erlef-cna Varsel allows Content Spoofing through author-supplied `class` attributes in rendered markdown.\n\n`Varsel.Cases.Markdown` renders markdown that may hold literal HTML and sanitizes the result with the default MDEx allow-list. That list keeps any `class` and `style` on `div`, `span`, `pre` and `code`. The site stylesheet has positioning utilities, so an author can draw their own content, including a link, over the page. An author is any user who can write to a case, or a commenter on a linked GitHub advisory who has no account in Varsel. The output is shown on case pages and on public CVE pages. No script runs.\n\nThis issue affects cna.erlef.org: from 2026-07-30 before 2026-12-02; erlef-cna/varsel: from 67807b013f8fe42cb4d25d0084a810b6cbd2947d before 4c71eb6e970d34d176e4d6de8bc005d5b7da2ecb.\n\n## Impact\n\nAn author can cover a case page or a public CVE page with their own content and a link. A viewer sees that content in place of the page.","aliases":["GHSA-xq7h-fw5j-9gcx","CVE-2026-137164"],"modified":"2026-12-02T12:15:05.488470131Z","published":"2026-12-02T12:07:09.849Z","database_specific":{"cpe_ids":["cpe:2.3:a:erlef-cna:varsel:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-183"],"$schema":"https://cna.erlef.org/schemas/osv/record-0.1.0.json","capec_ids":["CAPEC-148"]},"references":[{"type":"ADVISORY","url":"https://github.com/erlef-cna/varsel/security/advisories/GHSA-xq7h-fw5j-9gcx"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-137164.html"},{"type":"WEB","url":"https://github.com/erlef-cna/varsel/commit/67807b013f8fe42cb4d25d0084a810b6cbd2947d"},{"type":"FIX","url":"https://github.com/erlef-cna/varsel/commit/4c71eb6e970d34d176e4d6de8bc005d5b7da2ecb"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/erlef-cna/varsel","events":[{"introduced":"67807b013f8fe42cb4d25d0084a810b6cbd2947d"},{"fixed":"4c71eb6e970d34d176e4d6de8bc005d5b7da2ecb"}]}],"versions":["v0.14.0","v0.13.0","v0.12.2","v0.12.1","v0.12.0","v0.11.1","v0.11.0","v0.10.4","v0.10.3","v0.10.2","v0.10.1","v0.10.0","v0.9.0","v0.8.2","v0.8.1","v0.8.0","v0.7.0","v0.6.1","v0.6.0","v0.5.1","v0.5.0","v0.4.1","v0.4.0","v0.3.7","v0.3.6","v0.3.5","v0.3.4","v0.3.3","v0.3.2","v0.3.1","v0.3.0","v0.2.2","v0.2.1","v0.2.0","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0"],"database_specific":{"modules":["'Elixir.Varsel.Cases.Markdown'"],"program_files":["lib/varsel/cases/markdown.ex"],"program_routines":["'Elixir.Varsel.Cases.Markdown':to_html/1","'Elixir.Varsel.Cases.Markdown':to_display_html/2","'Elixir.Varsel.Cases.Markdown':to_comment_html/2"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-137164.json","$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","source":"CNA"}],"credits":[{"name":"Jonatan Männchen / EEF","type":"FINDER"},{"name":"Jonatan Männchen / EEF","type":"REPORTER"},{"name":"Jonatan Männchen / EEF","type":"COORDINATOR"},{"name":"Jonatan Männchen / EEF","type":"REMEDIATION_DEVELOPER"}]}