CVE-2026-130594: Scalar scalar-ninja 0.1.0 before 0.3.3 XSS via ScalarConfig title
Scalar scalar-ninja 0.1.0 before 0.3.3 contains a cross-site scripting vulnerability that allows attackers to inject scripts by supplying unescaped ScalarConfig title values. Attackers controlling title metadata can close the title element with </title> and inject a script tag that executes in the documentation origin for API reference visitors.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.3.3
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs the ability to control ScalarConfig title metadata. Exploitation also requires an API reference visitor to load the affected documentation page.
What impact can successful exploitation have?
Injected script executes in the API documentation origin. The listed impact includes low confidentiality and integrity impact, with no availability impact.
Which versions are affected and what version fixes it?
scalar-ninja versions from 0.1.0 before 0.3.3 are affected. Version 0.3.3 is the referenced fixed release.