CVE-2026-130593

Scalar scalar-ninja 0.1.0 before 0.3.3 XSS via Inline Configuration Script

Published Nov 17, 2026 CVSS 4.0 · 5.1 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Scalar scalar‑ninja versions 0.1.0 through 0.3.2 embed unescaped OpenAPI content inside an inline <script> element via the get_scalar_api_reference() function. An attacker can supply an OpenAPI document that includes a </script><script> sequence in its content or source fields, causing the browser to terminate the current script and execute the attacker‑supplied script while the page is rendered. This allows the execution of arbitrary JavaScript within the API reference page, giving the attacker the same origin privileges as the viewing user. The flaw is a classic reflected Cross‑Site Scripting (CWE‑79) that can lead to credential theft, session hijacking, or defacement for all users who load the vulnerable API reference.

Affected Systems

The vulnerability affects the Scalar scalar‑ninja package in the Scalar vendor. All releases from version 0.1.0 up to (but not including) 0.3.3 are impacted. Users running any of these versions are exposed unless they are restricted from inputting malicious OpenAPI documents.

Risk and Exploitability

The CVSS rating of 5.1 indicates the flaw is moderate in complexity but relies on the user visiting the vulnerable API reference page. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting a lower likelihood of widespread exploitation at this time. Exploitation requires the ability to provide a crafted OpenAPI document to the system; no special privileges or advanced attack skills are needed beyond supplying that content. Asset owners should assume the flaw is usable by anyone who can influence the OpenAPI input that the scalar‑ninja service consumes and could impact all users browsing the documentation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade scalar‑ninja to version 0.3.3 or later to apply the vendor‑provided fix.
  • If an upgrade is not immediately possible, adjust get_scalar_api_reference() to escape or otherwise neutralize any OpenAPI content before inserting it into an inline script tag.
  • Implement a Content Security Policy that disallows inline scripts or requires a nonce to mitigate the impact of any remaining XSS vectors.

Generated by OpenCVE AI on November 17, 2026 at 15:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title Scalar scalar-ninja 0.1.0 before 0.3.3 XSS via Inline Configuration Script
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}

Subscriptions

No data.

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 17, 2026, 1:52 PM
Reserved
Nov 17, 2026, 12:32 PM
Status
Received
Published
Nov 17, 2026, 2:17 PM
Modified
Nov 17, 2026, 2:17 PM