{"items":[{"id":"NVI-00018318","kind":"vulnerability","title":"Litestar has HTML Injection Through its CSRF Token","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-542p-wvx7-72m4","CVE-2026-48060"],"plain_summary":"GitHub lists this reviewed advisory for litestar. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-0ff6177a2d73883065c6783913f0de07"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-06-10T19:12:06.000Z","value":"8.1 high","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-0ff6177a2d73883065c6783913f0de07"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-0ff6177a2d73883065c6783913f0de07","url":"https://github.com/advisories/GHSA-542p-wvx7-72m4","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-542p-wvx7-72m4","publisher":"GitHub Advisory Database","observed_at":"2026-11-06T15:13:31.161Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-0ff6177a2d73883065c6783913f0de07"],"technology":"litestar","known_exclusions":[],"conditions_summary":"# Overview\n\nLitestar 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.\n\nWe used the latest Litestar version available via PyPI for this disclosure. At the time of writing, that is version 2.21.0 and we have not validated this against the current latest commit on the main branch.\n\n# Special Configurations Required\n\nFor a web application to be vulnerable to this issue, it must:\n\n- Use templates to render the content which is returned to the user (e.g. Jinja, Mako, MiniJinja)\n- Have CSRF protection enabled\n- Have CSRF inputs enabled (i.e. a hidden form field which contains the CSRF token)\n\n**Links to relevant documentation for the above configurations:**\n\n- https://docs.litestar.dev/2/usage/templating.html\n- https://docs.litestar.dev/latest/usage/middleware/builtin-middleware.html#csrf\n- https://docs.litestar.dev/latest/usage/templating.html#adding-csrf-inputs\n\n# Reproduction Steps\n\n1. Visit an application which contains a fo","public_affected_ranges":["< 2.22.0"]}],"null_published_at":"2026-11-07T07:07:39.811Z","source_updated_at":"2026-06-10T19:12:06.000Z","source_disclosed_at":"2026-06-10T19:12:05.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-06T15:13:31.161Z"}],"next_cursor":null,"snapshot_revision":"42594"}