Read the docs

Code injection in @scalar/typebox via TypeCompiler schema strings

Priority LOW 38CWE-94Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

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

Summary

@scalar/typebox from 0.1.0 before 0.1.4 contains a code injection flaw in TypeCompiler (CWE-94) that lets attackers run JavaScript by supplying crafted schema strings. Attackers can break out of single quotes in string formats, Kind names, property keys or Literal values, executing arbitrary JavaScript in the host Node.js process during Compile() and Check(). A local attacker with low privileges can exploit this with no user interaction, affecting confidentiality, integrity and availability.

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

Description from the CNA

@scalar/typebox before 0.1.4 contains a code injection vulnerability in TypeCompiler that allows attackers to execute JavaScript by supplying crafted schema strings. Attackers can inject single-quote breakouts into string format, Kind names, property keys or Literal values to run arbitrary JavaScript in the host Node.js process during Compile() and Check().

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00226 7th percentileScored 2026-11-30
Fix Fixed typebox (scalar): 0.1.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

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

Affected products

VendorProductAffected versionsFixed inStatusSource
Scalartypebox0.1.0 to before 0.1.40.1.4Patch availableCNA
  • typebox VendorScalar Affected 0.1.0 to before 0.1.4 Fixed in 0.1.4 Patch available CNA

Remediation

Upgrade @scalar/typebox to version 0.1.4 or later, which fixes the issue.

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

  • Fix · CNA typebox (scalar) Fixed in 0.1.4

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-133309
  2. 2026-11-19 Alias added: GHSA-79vm-p7cq-37v7
  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-92539 Cross-site scripting in Scalar scalar-ninja API reference CVSS 4.0MEDIUM 5.1

Sources