Cross-site scripting in Scalar scalar-ninja API reference
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
Scalar scalar-ninja from 0.1.0 before 0.3.3 contains a cross-site scripting flaw in get_scalar_api_reference() because it embeds unescaped OpenAPI content inside an inline script element. An attacker who supplies an OpenAPI document with a crafted script closing sequence in content or sources can run scripts in the documentation origin for every user who views the API reference. The attacker needs low privileges and user interaction.
Written with Claude Haiku 5.5 from the sources below · 2026-11-17
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade scalar-ninja to version 0.3.3 or later, which is the fixed version.
Written with Claude Haiku 5.5 from the sources below · 2026-11-17
- Fix · CNA scalar-ninja (Scalar) Fixed in 0.3.3
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
scalar-ninja 0.3.3
2 records Highest priority Priority MEDIUM 1 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2026-92540 Cross-site scripting in Scalar scalar-ninja via ScalarConfig titlePriority MEDIUM 56
Timeline
- 2026-11-17 Threatist record created from CVE-2026-130593
- 2026-11-17 Alias added: GHSA-qcqh-p9f6-q4wm
- 2026-11-19 CISA SSVC decision points changed
References
More Scalar vulnerabilities
- TI-2026-92540 Cross-site scripting in Scalar scalar-ninja via ScalarConfig title CVSS 4.0MEDIUM 5.1
- TI-2026-94989 Code injection in @scalar/typebox via TypeCompiler schema strings CVSS 4.0HIGH 8.5
Sources
- CVE-2026-130593 · CVE Program
- CVE-2026-130593 · NVD
- FIRST EPSS
- GHSA-qcqh-p9f6-q4wm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences