<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-28T19:45:10.837440+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/fkie_cve-2026-72717</id>
    <title>fkie_cve-2026-72717</title>
    <updated>2026-09-28T19:45:10.855475+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>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 schema 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.</p>
      </div>
    </content>
    <link href="https://db.gcve.eu/vuln/fkie_cve-2026-72717"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-w727-8j6c-2rj4</id>
    <title>GHSA-w727-8j6c-2rj4 — Orval: Import-time RCE via schema default -&gt; zod module-level template literal</title>
    <updated>2026-09-28T19:45:10.855567+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: orval</p>
<p>### Summary</p>
<p>Orval's zod schema generation emits a schema's `default` value as a module-level template literal (`export const …Default = `&lt;default&gt;`;`) without escaping `${` or the backtick. A default of the form `v${&lt;code&gt;}w` injects a live JavaScript expression that is evaluated when the generated zod schema module is imported, executing attacker-controlled code at import — no request or function call needed. Verified on Orval 8.19.0; survives default OpenAPI validation.</p>
<p>### Details</p>
<p>```ts
export const getIResponseDsDefault = `v${globalThis.ORVPWN()}w`;
```</p>
<p>`${...}` permits an arbitrary JS expression. Orval escapes its other value sinks (enum, mock, regex, object-default values) with `\'` inside single-quoted strings; the string `default` is the one value emitted as a backtick template literal, so `${...}`/backtick are interpreted, not escaped. Distinct from the URL-template-literal cases (different field and sink) and from the published Orval CVEs (summary/MCP, x-enumDescriptions, const/mock).</p>
<p>### PoC</p>
<p>`reproduce.sh` (+ `make_spec.py`) attached: generates the zod schema with default validation, bundles it, imports it, and shows a marker written at import. Verified on 8.19.0.</p>
<p>### Impact</p>
<p>Code execution at import in any application that imports a zod schema module generated from an attacker-controlled or attacker-influenced OpenAPI description.</p>
<p>### Suggested fix</p>
<p>Emit `default` values via a proper string-literal encoder (JSON.stringify, or escape backtick and ${ if a t…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-w727-8j6c-2rj4"/>
  </entry>
</feed>
