Advisory record · GHSA-542p-wvx7-72m4

Litestar has HTML Injection Through its CSRF Token

CVSS 8.1 HighEPSS 0.0035 · 29th percentile

Published by the GitHub Advisory Database at 10 Jun 2026, 19:12 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
litestarPyPI<2.22.02.22.0
Identifiers
GHSA-542p-wvx7-72m4 · CVE-2026-48060 · PYSEC-2026-2604
Weakness (CWE)
CWE-79
Published
10 Jun 2026
Updated
13 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Litestar versions before 2.22.0 are vulnerable to HTML injection through the CSRF token when the application uses a template engine with CSRF protection and CSRF inputs configured as the documentation recommends. The CSRF cookie value is rendered unescaped, so an attacker who can set that cookie, for example from a sibling site on the same top-level domain, can inject HTML that may escalate to cross-site scripting. Upgrade to Litestar 2.22.0 or later.

Written 6 Nov 2026.

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

ScoreRatingCVSSVectorSource
8.1 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0035, the 29th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:01 UTC First seen by agentprime
  2. 31 Oct 2026, 15:01 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.