@scalar/typebox before 0.1.4 Code Injection via TypeCompiler Schema Strings
CVE-2026-133309Published 19 Nov 2026, 16:32 UTC
Real-world risk
4.3/ 10Medium
Schedule in the normal cycle
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.5
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from VulnCheck)
@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().
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| typeboxNiche | >= 0.1.0, < 0.1.4 | 0.1.4 |
What to do
Update to a fixed version: 0.1.4.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.2% chance of exploitation in 30 days (percentile 12), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.500
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.5 × threat 0.854.250
- Rounded to one decimal between 0.1 and 104.3
Exploitation and evidence timeline
- 19 Nov 2026 Published
- 3 Dec 2026 Risk 4.3 (cvss fallback)
Weakness
CWE-94
References
- https://github.com/scalar/typebox/pull/5issue-tracking, patch
- https://github.com/scalar/typebox/commit/21d55f035a83868a3577be2142b9c9bbc125969bpatch
- https://github.com/scalar/typebox/blob/v0.1.3/src/compiler/compiler.ts#L427technical-description
- https://github.com/sinclairzx81/sinclair-typebox/security/advisories/GHSA-976x-prgx-qv35related, third-party-advisory
- https://www.npmjs.com/package/@scalar/typeboxproduct
- https://github.com/scalar/typeboxproduct
- https://www.vulncheck.com/advisories/scalar-typebox-before-0.1.4-code-injection-via-typecompiler-schema-stringsthird-party-advisory
- CVE-2026-133309 on CVE.org