Read the docs

Cross-site scripting in Scalar scalar-ninja API reference

Priority LOW 23CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.

Summary

Scalar scalar-ninja from 0.1.0 before 0.3.3 contains a cross-site scripting flaw in get_scalar_api_reference() because it embeds unescaped OpenAPI content inside an inline script element. An attacker who supplies an OpenAPI document with a crafted script closing sequence in content or sources can run scripts in the documentation origin for every user who views the API reference. The attacker needs low privileges and user interaction.

Written with Claude Haiku 5.5 from the sources below · 2026-11-17

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00298 14th percentileScored 2026-11-30
Fix Fixed scalar-ninja (Scalar): 0.3.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Scalarscalar-ninja0.1.0 to before 0.3.30.3.3Patch availableCNA
  • scalar-ninja VendorScalar Affected 0.1.0 to before 0.3.3 Fixed in 0.3.3 Patch available CNA

Remediation

Upgrade scalar-ninja to version 0.3.3 or later, which is the fixed version.

Written with Claude Haiku 5.5 from the sources below · 2026-11-17

  • Fix · CNA scalar-ninja (Scalar) Fixed in 0.3.3

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    scalar-ninja 0.3.3

    2 records Highest priority Priority MEDIUM 1 MEDIUM, 1 LOW

    Other records, highest priority first

    • TI-2026-92540 Cross-site scripting in Scalar scalar-ninja via ScalarConfig titlePriority MEDIUM 56

Timeline

  1. 2026-11-17 Threatist record created from CVE-2026-130593
  2. 2026-11-17 Alias added: GHSA-qcqh-p9f6-q4wm
  3. 2026-11-19 CISA SSVC decision points changed

References

  • TI-2026-92540 Cross-site scripting in Scalar scalar-ninja via ScalarConfig title CVSS 4.0MEDIUM 5.1
  • TI-2026-94989 Code injection in @scalar/typebox via TypeCompiler schema strings CVSS 4.0HIGH 8.5

Sources