CVE-2026-24132

Source
https://cve.org/CVERecord?id=CVE-2026-24132
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-24132.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-24132
Aliases
Published
2026-01-22T23:47:45Z
Modified
2026-08-12T03:51:45Z
Severity
  • 7.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Orval Mock Generation Code Injection via const
Details

Orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Versions 7.19.0 and below and 8.0.0-rc.0 through 8.0.2 allow untrusted OpenAPI specifications to inject arbitrary TypeScript/JavaScript into generated mock files via the const keyword on schema properties. These const values are interpolated into the mock scalar generator (getMockScalar in packages/mock/src/faker/getters/scalar.ts) without proper escaping or type-safe serialization, which results in attacker-controlled code being emitted into both interface definitions and faker/MSW handlers. The vulnerability is similar in impact to the previously reported enum x-enumDescriptions (GHSA-h526-wf6g-67jv), but it affects a different code path in the faker-based mock generator rather than @orval/core. The issue has been fixed in versions 7.20.0 and 8.0.3.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-77"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24132.json"
}
References

Affected packages

Git / github.com/orval-labs/orval

Affected ranges

Type
GIT
Repo
https://github.com/orval-labs/orval
Events
Database specific
Show details
{
    "cpe": "cpe:2.3:a:orval:orval:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "6.0.0"
        },
        {
            "fixed": "7.20.0"
        },
        {
            "introduced": "8.0.0"
        },
        {
            "fixed": "8.0.3"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

v6.*
v6.0.0
v6.0.1
v6.0.2
v6.0.3
v6.0.4
v6.1.0
v6.1.1
v6.1.2
v6.10.2
v6.10.3
v6.11.0
v6.11.1
v6.12.0
v6.12.1
v6.13.0
v6.13.1
v6.14.0
v6.14.1
v6.14.2
v6.14.3
v6.14.4
v6.15.0
v6.16.0
v6.17.0
v6.18.0
v6.18.1
v6.19.0
v6.19.1
v6.2.0
v6.2.1
v6.2.2
v6.2.3
v6.20.0
v6.21.0
v6.22.0
v6.22.1
v6.23.0
v6.24.0
v6.25.0
v6.26.0
v6.27.0
v6.27.1
v6.28.0
v6.28.1
v6.28.2
v6.29.0
v6.29.1
v6.3.0
v6.30.0
v6.30.1
v6.30.2
v6.31.0
v6.4.0
v6.4.1
v6.4.2
v6.4.3
v6.5.0
v6.5.1
v6.5.2
v6.5.3
v6.6.0
v6.6.1
v6.6.2
v6.6.3
v6.6.4
v6.7.0
v6.7.1
v6.8.0
v6.8.1
v6.9.0
v6.9.1
v6.9.2
v6.9.3
v6.9.4
v6.9.5
v6.9.6
v7.*
v7.0.0
v7.0.1
v7.1.0
v7.1.1
v7.10.0
v7.11.0
v7.11.1
v7.11.2
v7.12.0
v7.12.1
v7.12.2
v7.13.0
v7.13.1
v7.13.2
v7.14.0
v7.15.0
v7.16.0
v7.16.1
v7.17.0
v7.17.2
v7.18.0
v7.19.0
v7.2.0
v7.3.0
v7.4.0
v7.4.1
v7.5.0
v7.6.0
v7.7.0
v7.8.0
v7.9.0
v8.*
v8.0.0
v8.0.1
v8.0.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-24132.json"