CVE-2026-130593
Received Received - Intake

Scalar XSS in Scalar Ninja API Documentation

Vulnerability report for CVE-2026-130593, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-17

Last updated on: 2026-11-17

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-17
Last Modified
2026-11-17
Generated
2026-11-17
AI Q&A
2026-11-17
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
Scalar scalar-ninja From 0.1.0 (inc) to 0.3.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a cross-site scripting (XSS) issue in Scalar scalar-ninja versions 0.1.0 to 0.3.2. It occurs in the get_scalar_api_reference() function where OpenAPI content is embedded without proper escaping inside an inline script element. Attackers can exploit this by providing an OpenAPI document containing a </script><script> sequence in content or sources, allowing them to execute malicious scripts in the context of the documentation origin for all users viewing the API reference.

Detection Guidance

To detect this vulnerability, inspect Scalar Ninja installations for versions before 0.3.3. Check for inline script elements in API documentation that may contain unescaped OpenAPI content. Review web server logs for suspicious requests containing </script><script> sequences.

Impact Analysis

This vulnerability can allow attackers to inject and execute arbitrary JavaScript code in the context of the affected Scalar scalar-ninja documentation page. This could lead to theft of session cookies, account takeover, or other malicious actions performed on behalf of the user viewing the API reference. Users of vulnerable versions are at risk when accessing documentation with malicious OpenAPI content.

Mitigation Strategies

Upgrade Scalar Ninja to version 0.3.3 or later. Apply input validation to sanitize OpenAPI content before rendering in web interfaces. Implement Content Security Policy headers to mitigate XSS risks. Monitor for unusual script execution in API documentation pages.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-130593. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...