PatchSiren cyber security CVE debrief
CVE-2026-130593 Scalar CVE debrief
CVE-2026-130593 debrief: Scalar scalar-ninja 0.1.0 before 0.3.3 contains a cross-site scripting vulnerability in get_scalar_api_reference(). This vulnerability allows attackers to execute scripts in the documentation origin by supplying an OpenAPI document containing a </script><script> sequence. Defenders should prioritize verifying and upgrading to version 0.3.3 or later, reviewing and sanitizing OpenAPI content, and implementing additional security measures for API references. The vulnerability exists due to the embedding of unescaped OpenAPI content inside an inline script element.
- Vendor
- Scalar
- Product
- scalar-ninja
- CVSS
- MEDIUM 5.1
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-17
- Original CVE updated
- 2026-11-19
- Advisory published
- 2026-11-17
- Advisory updated
- 2026-11-19
Who should care
Defenders responsible for API security, web application security, and vulnerability management should assess exposure and prioritize remediation. They should verify and upgrade to version 0.3.3 or later, review and sanitize OpenAPI content, and implement additional security measures for API references. Additionally, defenders should review compensating controls for exposed systems while remediation is scheduled and verified, and check relevant monitoring,
Why it matters
CVE-2026-130593 is a cross-site scripting vulnerability in Scalar scalar-ninja 0.1.0 before 0.3.3 that allows attackers to execute scripts in the documentation origin. Defenders should prioritize verifying and upgrading to version 0.3.3 or later, reviewing and sanitizing OpenAPI content, and implementing additional security measures for API references.
- Attackers can execute scripts in the documentation origin for every user viewing the API reference
- Defenders must verify and upgrade to version 0.3.3 or later to prevent exploitation
- Remediation requires sanitizing OpenAPI content and implementing additional security measures for API references
Technical summary
The get_scalar_api_reference() function in Scalar scalar-ninja 0.1.0 before 0.3.3 embeds unescaped OpenAPI content inside an inline script element, allowing attackers to supply an OpenAPI document containing a </script><script> sequence to execute scripts in the documentation origin. This vulnerability can be exploited by attackers to execute scripts in the documentation origin for every user viewing the API reference. Defenders should prioritize verifying and upgrading to version 0.3.3 or later, reviewing and sanitizing OpenAPI content, and implementing additional security measures for API references.
Defensive priority
Defenders should prioritize verifying and upgrading to version 0.3.3 or later.
Recommended defensive actions
- Verify and upgrade to version 0.3.3 or later
- Review and sanitize OpenAPI content
- Implement additional security measures for API references
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
Evidence notes
The vulnerability exists in the get_scalar_api_reference() function, which embeds unescaped OpenAPI content inside an inline script element. Attackers can supply an OpenAPI document containing a </script><script> sequence to execute scripts in the documentation origin. Defenders should verify and upgrade to version 0.3.3 or later, review and sanitize OpenAPI content, and implement additional security measures for API references. The get_scalar_api_reference() function is used to generate API references, and the vulnerability is caused
Sources and references
Verified primary and authoritative sources
-
CVE-2026-130593 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-130593
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-130593 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-130593
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Scalar scalar-ninja 0.1.0 before 0.3.3 contains a cross-site scripting vulnerability in...
Unverified legacy reference
URL: https://github.com/advisories/GHSA-qcqh-p9f6-q4wm
github_advisory_database
-
Source reference
Unverified legacy reference
URL: https://github.com/scalar/scalar/security/advisories/GHSA-8p3f-3g49-2935
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/scalar/scalar/commit/0d5c2546e858e352d5d738b75c555a098a6b1264
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/scalar/scalar/blob/4fbffbc6c2ece137f15ded6cfaae785caa7098d8/integrations/django-ninja/scalar_ninja/scalar_ninja.py
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://pypi.org/project/scalar-ninja/0.3.3
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/scalar-scalar-ninja-0.1.0-before-0.3.3-xss-via-inline-configuration-script
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.