{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "6.7.1"
              },
              {
                "fixed": "8.29.0"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "667d0d4fdb032d53f8dcb1d18aa1268a1ae8e3af"
            },
            {
              "fixed": "3ea429d1161c0470cf34c08052821214ad908835"
            }
          ],
          "repo": "https://github.com/orval-labs/orval",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/96xxx/CVE-2026-96757.json"
  },
  "details": "orval before 8.29.0 fails to escape OpenAPI media-type keys when emitting them into single-quoted Content-Type string literals in generated code. Attackers can inject JavaScript through crafted media-type keys in OpenAPI specifications that executes when generated fetch operations or mock resolvers are invoked.",
  "id": "CVE-2026-96757",
  "modified": "2026-09-25T03:31:04.769757130Z",
  "published": "2026-09-23T16:23:55.164Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/96xxx/CVE-2026-96757.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/orval-labs/orval/security/advisories/GHSA-4q3x-rqfw-3x8p"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/orval-labs/orval/security/advisories/GHSA-rcpr-mq4m-jx9j"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-96757"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/orval-before-8.29.0-code-injection-via-unescaped-openapi-media-type"
    },
    {
      "type": "FIX",
      "url": "https://github.com/orval-labs/orval/commit/43af282d62dca0ef3140023741fb768f6a718adb"
    },
    {
      "type": "FIX",
      "url": "https://github.com/orval-labs/orval/commit/a2d4af59f3b167dc8a7a65d15f51cdb89ebe2fe5"
    },
    {
      "type": "FIX",
      "url": "https://github.com/orval-labs/orval/pull/4007"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/orval-labs/orval"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/orval-labs/orval/blob/v8.28.1/packages/fetch/src/index.ts#L584"
    }
  ],
  "related": [
    "GHSA-4q3x-rqfw-3x8p",
    "GHSA-rcpr-mq4m-jx9j"
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "orval before 8.29.0 Code Injection via unescaped OpenAPI media-type"
}