Read the docs

Cross-site scripting in Scalar scalar-ninja via ScalarConfig title

Priority MEDIUM 56CWE-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 (CWE-79) because it does not escape ScalarConfig title values. An attacker who controls title metadata can close the title element and inject a script that runs in the documentation origin for API reference visitors. The CVSS 4.0 vector requires low privileges and user interaction over the network.

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

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept 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
Poc
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 fixes the flaw. The sources list no fixed version for scalar-ninja beyond 0.3.3.

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

  • 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-92539 Cross-site scripting in Scalar scalar-ninja API referencePriority LOW 23

Timeline

  1. 2026-11-17 Threatist record created from CVE-2026-130594
  2. 2026-11-17 Alias added: GHSA-2qfj-gcwx-47pc
  3. 2026-11-18 CISA SSVC decision points changed

References

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

Sources