Scalar scalar-ninja 0.1.0 before 0.3.3 contains a cross-site scripting vulnerability in get_scalar_api_reference()
Source GCVE Database
Not known to be exploited · CVSS 5.1 Medium : upgrade to 0.3.3 when convenient.
Data as of 17 Nov 2026, 16:52 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 5.1 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 5.4 |
- Patch
- Available – fixed in 0.3.3
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 17 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 16 Nov 2026.
What to do
Upgrade scalar-ninja to 0.3.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Scalarscalar-ninja | Affected
| Fixed in
|
PyPIscalar-ninjapkg:pypi/scalar-ninjaOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Scalar scalar-ninja version 0.3.3 and later. Users should upgrade to version 0.3.3 or newer to remediate this vulnerability. No other mitigation or temporary workaround is indicated.
Description
Scalar scalar-ninja versions before 0.3.3 have a cross-site scripting (XSS) vulnerability in the get_scalar_api_reference() function. This flaw allows attackers to inject malicious scripts via crafted OpenAPI documents containing a </script><script> sequence, which are embedded unescaped inside an inline script element. Users viewing the affected API documentation may have scripts executed in their browser context.
References
- github.com/scalar/scalar/security/advisories/GHSA-8p3f-3g49-2935 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-130593 (opens in a new tab)
- github.com/scalar/scalar/commit/0d5c2546e858e352d5d738b75c555a098a6b1264 (opens in a new tab)
- github.com/scalar/scalar/blob/4fbffbc6c2ece137f15ded6cfaae785caa7098d8/integrations/django-ninja/scalar_ninja/scalar_ninja.py (opens in a new tab)
- pypi.org/project/scalar-ninja/0.3.3 (opens in a new tab)
- vulncheck.com/advisories/scalar-scalar-ninja-0.1.0-before-0.3.3-xss-via-inline-configuration-script (opens in a new tab)