CVE-2026-130593: Scalar scalar-ninja 0.1.0 before 0.3.3 XSS via Inline Configuration Script

Published Nov 17, 2026
·
Updated

Scalar scalar-ninja 0.1.0 before 0.3.3 contains a cross-site scripting vulnerability in getscalarapireference() 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.

Affected Software

1 affected component
pypi/scalar-ninja>=0.1.0<0.3.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.3.3

Event History

Nov 17, 2026
CVE Published
via MITRE·01:52 PM
Data Sourced
via MITRE·01:52 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which scalar-ninja releases are affected, and what version contains the fix?

Versions from 0.1.0 before 0.3.3 are affected. Upgrade to scalar-ninja 0.3.3 or later.

2

What must an attacker be able to do to exploit this issue?

The attacker must be able to supply an OpenAPI document with a malicious </script><script> sequence in its content or sources. A user must then view the affected API reference.

3

What is the impact on users who view a malicious API reference?

Attacker-supplied JavaScript can execute in the documentation origin for every user who views that API reference. The reported impact includes low confidentiality and integrity impact, with no availability impact.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203