Scalar scalar-ninja 0.1.0 before 0.3.3 XSS via Inline Configuration Script
- State
- Published
- Severity
- 5.1 Medium
- Published
- Nov 17, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 17, 2026
Description
Scalar scalar-ninja 0.1.0 before 0.3.3 contains a cross-site scripting vulnerability in get_scalar_api_reference() that embeds unescaped OpenAPI content inside an inline script element. Attackers can supply an OpenAPI document containing a </script><script> sequence in content or sources to execute scripts in the documentation origin for every user viewing the API reference.
| Product | Versions |
|---|---|
| scalar-ninja Scalar | 0.1.0 to before 0.3.3 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.1 Medium | VulnCheck | |
| 3.1 | 5.4 Medium | VulnCheck |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- GitHub Security Advisory (GHSA-8p3f-3g49-2935)Vendor Advisory
- https://github.com/scalar/scalar/commit/0d5c2546e858e352d5d738b75c555a098a6b1264Patch
- https://pypi.org/project/scalar-ninja/0.3.3/Release Notes
- https://github.com/scalar/scalar/blob/4fbffbc6c2ece137f15ded6cfaae785caa7098d8/integrations/django-ninja/scalar_ninja/scalar_ninja.py#L529Technical Details
- VulnCheck Advisory: Scalar scalar-ninja 0.1.0 before 0.3.3 XSS via Inline Configuration ScriptThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.