SecurityContext

CVE-2026-71871: Orval - Server-Side Template Injection

  • Cve: CVE-2026-71871
  • Name: Orval - Server-Side Template Injection
  • Description: Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, a ${...} expression or backtick in a header parameter default is emitted into a module-level template literal emitted by zod schema generation without safe encoding. This permits attacker-controlled JavaScript to be evaluated when the generated zod schema module is imported, resulting in code execution in the developer, CI, test, or application environment. The affected code is packages/zod/src/index.ts function formatDefaultValue. This issue is fixed in version 8.21.0.
  • Impact: Attackers can execute arbitrary JavaScript code in developer, CI, test, or application environments, leading to full code execution.
  • Remediation: Update to version 8.21.0 or later.
  • Vulnerability type: template_injection
  • Vulnerability impact: remote_code_execution
  • Requirements: Attacker needs to control header parameter default values
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.3
  • Cvss vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Epss score: 0.00653
  • Epss percentile: 0.52238
  • Assignee: [email protected]
  • Published at: 2026-08-19T18:17:24Z
  • Age in days: 97
  • Modified at: 2026-09-09T21:20:38Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-71871
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6
https://github.com/orval-labs/orval/pull/3692
https://github.com/orval-labs/orval/releases/tag/v8.21.0
https://github.com/orval-labs/orval/security/advisories/GHSA-8j6p-r8jg-mxqh

Products

ProductAffectedPlatform boundSourcesUrl
orval:orval< 8.21.0nocna_alias_text/v1/products/orval/orval

Projects

RepositoryLink kindsIndexedUrl
orval-labs/orvalcommit, fix, package, pull, releases, security_advisoryyes/v1/repositories/orval-labs/orval

Index

  • Repositories: 2
  • Repositories high signal: 2
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts