{"answers":{"affected":"4 open source packages ship an affected version, including @orval/core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-25141 in the wild and no public exploit code.","fix":"Upgrade @orval/core to a fixed version for your release line: 7.21.0 or 8.2.0.","what":"CVE-2026-25141 is a critical code injection vulnerability in orval-labs orval, published on 30 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-25141 and fix it if it is affected.\n\nWhat it is: CVE-2026-25141 is a critical code injection vulnerability in orval-labs orval, published on 30 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-25141 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @orval/core (npm): affected from 7.19.0; fixed in 7.21.0\n- @orval/core (npm): affected from 7.19.0; fixed in 7.21.0\n- @orval/core (npm): affected from 8.0.0; fixed in 8.2.0\n- @orval/core (npm): affected from 8.0.0; fixed in 8.2.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-25141/ (Markdown: https://insights.sbomify.com/CVE-2026-25141/index.md)","id":"CVE-2026-25141","markdown":"https://insights.sbomify.com/CVE-2026-25141/index.md","name":"CVE-2026-25141","record":{"aliases":["GHSA-gch2-phqh-fg9q"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenAPI client generator","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript in generated clients via JSFuck techniques bypassing sanitization in Orval.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"orval","vendor":"orval"}],"cvss":{"score":9.3,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Versions starting with 7.19.0 and prior to 7.21.0 and 8.2.0 have an incomplete fix for CVE-2026-23947. While the jsStringEscape function properly handles single quotes ('), double quotes (\") and so on, it is still possible to achieve code injection using only a limited set of characters that are currently not escaped. The vulnerability lies in the fact that the application can be forced to execute arbitrary JavaScript using characters such as []()!+. By using a technique known as JSFuck, an attacker can bypass the current sanitization logic and run arbitrary code without needing any alphanumeric characters or quotes. Version 7.21.0 and 8.2.0 contain an updated fix.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Orval has a code injection via unsanitized x-enum-descriptions uing JS comments","id":"CVE-2026-25141","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":4,"n_references":5,"next":{"headline":"SandboxJS Prototype Pollution -\u003e Sandbox Escape -\u003e RCE","id":"CVE-2026-25142"},"packages":[{"ecosystem":"npm","fixed":["7.21.0"],"introduced":["7.19.0"],"last_affected":[],"package":"@orval/core","purl":null,"source":"GHSA-gch2-phqh-fg9q"},{"ecosystem":"npm","fixed":["7.21.0"],"introduced":["7.19.0"],"last_affected":[],"package":"@orval/core","purl":"pkg:npm/%40orval/core","source":"GHSA-gch2-phqh-fg9q"},{"ecosystem":"npm","fixed":["8.2.0"],"introduced":["8.0.0"],"last_affected":[],"package":"@orval/core","purl":null,"source":"GHSA-gch2-phqh-fg9q"},{"ecosystem":"npm","fixed":["8.2.0"],"introduced":["8.0.0"],"last_affected":[],"package":"@orval/core","purl":"pkg:npm/%40orval/core","source":"GHSA-gch2-phqh-fg9q"}],"prev":{"headline":"apko affected by potential unbounded resource consumption in expandapk.ExpandApk on attacker-controlled .apk streams","id":"CVE-2026-25140"},"products":["orval"],"published":"2026-01-30","related":[{"cvss_score":9.3,"headline":"Orval MCP client is vulnerable to code injection via unsanitized x-enum-descriptions in enum generation","id":"CVE-2026-23947","kev_date_added":null,"published":"2026-01-20"},{"cvss_score":9.3,"headline":"orval MCP client is vulnerable to a code injection attack.","id":"CVE-2026-22785","kev_date_added":null,"published":"2026-01-12"},{"cvss_score":7.7,"headline":"Orval Mock Generation Code Injection via const","id":"CVE-2026-24132","kev_date_added":null,"published":"2026-01-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-02","vendors":["orval-labs"]},"summary":"Attackers can execute arbitrary JavaScript in generated clients via JSFuck techniques bypassing sanitization in Orval.","url":"https://insights.sbomify.com/CVE-2026-25141/"}