CVE-2026-71867
Publiée le 2026-08-19 · Dernière modification le 2026-08-19
Les versions d'Orval antérieures à la 8.21.0 sont concernées si elles génèrent des usines de mocks MSW à partir d'une spécification OpenAPI ou Swagger malveillante. Un attaquant capable de fournir une telle spécification peut exécuter du code JavaScript arbitraire dans vos environnements de développement, d'intégration continue (CI) ou de test. Cette attaque ne nécessite aucune authentification ni interaction utilisateur, au-delà du processus de génération et d'exécution des mocks à partir de la spécification compromise.
DÉTAIL DU VECTEUR CVSS
RÉFÉRENCES
Description officielle du NVD (en anglais)
Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, a single quote in a schema property name is emitted into single-quoted object keys in generated MSW mock factories without safe encoding. This permits attacker-controlled JavaScript to be evaluated when the generated mock factory is called by tests or an MSW handler, resulting in code execution in the developer, CI, test, or application environment. The affected code is packages/core/src/getters/keys.ts function getKey and MSW mock generation. This issue is fixed in version 8.21.0.