Code injection in @scalar/typebox via TypeCompiler schema strings
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
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
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
- 2026-11-19 Threatist record created from CVE-2026-133309
- 2026-11-19 Alias added: GHSA-79vm-p7cq-37v7
- 2026-11-19 CISA SSVC decision points changed
References
More Scalar vulnerabilities
- 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
- CVE-2026-133309 · CVE Program
- CVE-2026-133309 · NVD
- FIRST EPSS
- GHSA-79vm-p7cq-37v7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences