Back to list

Orval: Import-time RCE via query-parameter default -> zod module-level template literal — GHSA-P4CG-3328-RVFG

GitHub · GitHub · GHSA-P4CG-3328-RVFG

ID
GHSA-P4CG-3328-RVFG
Date
Source
GitHub
Vendor
GitHub
Threat
critical
CVSS
9.3
EPSS
0.00523

Summary

### Summary Orval's zod schema generation emits the **query-parameter** `default` value as a module-level template literal (`export const …Default = `<default>`;`) without escaping `${` or the backtick. A default of the form `v${<code>}w` injects a live JavaScript expression evaluated when the generated zod schema module is imported, executing attacker-controlled code at import — no request or function call needed.…

Timeline

Published by source
2026-09-02

Risk context

  • Reported severity or threat level: critical.
  • Reported CVSS score: 9.3 out of 10.
  • Reported EPSS value: 0.00523.
  • Review exposure for the affected product or family: npm: orval.

Product

npm: orval

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Evidence and provenance

Canonical advisory ID
GHSA-P4CG-3328-RVFG
Source
GitHub
Vendor
GitHub
Published by source
2026-09-02
Last source activity
2026-09-02
Additional identifiers
CVE-2026-72716
Curated by
hlukh.ch

Related advisories and connections

These advisories are connected by shared CVE, product, vendor, source, or time signals.