RCE in Scalar Typebox
CVE-2026-133309
- CVSS v3
- 7.8 High
- Public exploits
- None known
- EPSS
- 0.002 · 11.3th percentile
- Published
- 2026-11-19
@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().
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
- Attack Vector
- Local
AV:L - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.002, 11.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
References
- github.com/scalar/typebox/pull/5 (issue-tracking, patch)
- github.com/scalar/typebox/commit/21d55f035a83868a3577be2142b9c9bbc125969b (patch)
- github.com/scalar/typebox/blob/v0.1.3/src/compiler/compiler.ts (technical-description)
- github.com/sinclairzx81/sinclair-typebox/security/advisories/GHSA-976x-prgx-qv35 (related, third-party-advisory)
- www.npmjs.com/package/@scalar/typebox (product)
- github.com/scalar/typebox (product)
- www.vulncheck.com/advisories/scalar-typebox-before-0.1.4-code-injection-via-typ… (third-party-advisory)