{"id":"CVE-2026-48060","published":"2026-07-28T19:02:40Z","modified":"2026-07-28T19:39:13Z","title":"Litestar: HTML Injection Through CSRF Token","vendor":"litestar-org","product":"litestar","tier":"tail","description":{"text":"Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to version 2.20.0, Litestar instances which use a template engine in conjunction with CSRF protection are vulnerable to HTML Injection which can be escalated to Cross Site Scripting due to the contents of the CSRF cookie being excluded from automatic escaping by the template engine when configured inline with documentation recommendations. This issue has been patched in version 2.20.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00352,"percentile":0.29633,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-542p-wvx7-72m4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/litestar-org/litestar/releases/tag/v2.20.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":5.93},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"litestar-org","affectedVersions":[{"vendor":"litestar-org","product":"litestar","versions":["< 2.20.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-28T19:38:31.070372Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"litestar","vulnerableRanges":["<2.22.0"],"patched":["2.22.0"],"from":["GHSA-542p-wvx7-72m4","PYSEC-2026-2604"],"provenance":"source"}],"summary":{"text":"Litestar, an ASGI web framework from litestar-org, has an HTML injection flaw in its CSRF protection when used with a template engine, where the CSRF cookie's contents are excluded from automatic escaping in the setup recommended by its documentation. An attacker who can get a victim to interact with a page (user interaction required, no authentication needed, over the network) can inject markup that escalates to cross-site scripting, and this affects instances running versions before 2.20.0.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:23Z"},"euvd":{"id":"EUVD-2026-49994","exploited":false,"provenance":"source"}}