Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-133309: high-severity vulnerability (CVSS 8.5) in scalar typebox.
What happened
Original description from the source: @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
High severity, CVSS 8.5.
Affected products and versions
scalar typebox >= 0.1.0, < 0.1.4
| Product | Versions | Fixed in |
|---|---|---|
| scalar typebox | >= 0.1.0, < 0.1.4 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://github.com/scalar/typebox/pull/5 — CVE Program
- https://github.com/scalar/typebox/commit/21d55f035a83868a3577be2142b9c9bbc125969b — CVE Program
- https://github.com/scalar/typebox/blob/v0.1.3/src/compiler/compiler.ts#L427 — CVE Program
- https://github.com/sinclairzx81/sinclair-typebox/security/advisories/GHSA-976x-prgx-qv35 — CVE Program
- https://www.npmjs.com/package/@scalar/typebox — CVE Program
- https://github.com/scalar/typebox — CVE Program
- https://www.vulncheck.com/advisories/scalar-typebox-before-0.1.4-code-injection-via-typecompiler-schema-strings — CVE Program
Weaknesses (CWE): CWE-94
Relevant change history
Published
Preliminary advisory published.