{"id":"CVE-2026-44728","aliases":["CVE-2026-44728","GHSA-fv7c-fp4j-7gwp"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Control of Generation of Code when compiling specifically crafted malicious code with @babel/plugin-transform-modules-systemjs","summary":"Babel is a compiler for writing next generation JavaScript. From 7.12.0 to before 7.29.4 and 8.0.0-alpha.13, using Babel to compile code that was specifically crafted by an attacker can cause Babel to generate output code that executes arbitrary code. This vulnerability is fixed in 7.29.4 and 8.0.0-alpha.13.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Babel is a compiler for writing next generation JavaScript. From 7.12.0 to before 7.29.4 and 8.0.0-alpha.13, using Babel to compile code that was specifically crafted by an attacker can cause Babel to generate output code that executes arbitrary code. This vulnerability is fixed in 7.29.4 and 8.0.0-alpha.13.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nUsing Babel to compile code that was specifically crafted by an attacker can cause Babel to generate output code that executes arbitrary code.\n\nKnown affected plugins are:\n- `@babel/plugin-transform-modules-systemjs`\n- `@babel/preset-env` when using the [`modules: \"systemjs\"` option](https://babel.dev/docs/babel-preset-env#modules), as it delegates to `@babel/plugin-transform-modules-systemjs`\n\nNo other plugins under the `@babel` namespace are impacted.\n\n**Users that only compile trusted code are not impacted.**\n\n### Patches\n\nThe vulnerability has been fixed in `@babel/plugin-transform-modules-systemjs@7.29.4`.\n\nBabel also released `@babel/preset-env@7.29.5`, updating its `@babel/plugin-transform-modules-systemjs` dependency, to simplify forcing the update if you are using `@babel/preset-env` directly.\n\n### Workarounds\n\n- Pin `@babel/parser` to v7.11.5. The downgrade will completely disable string module name parsing, but it would also disable other new language features and the build pipeline may fail as a result. Only do so if you are working on a legacy codebase and can not upgrade `@babel/plugin-transform-modules-systemjs` to v7.29.4.\n- Do not use the `modules: \"systemjs\"` option, migrate the codebase to native ES Modules or any other module formats.\n\n### Credits\nBabel thanks Daniel Cervera for reporting the vulnerability.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Babel es un compilador para escribir JavaScript de próxima generación. Desde la versión 7.12.0 hasta antes de la 7.29.4 y la 8.0.0-alpha.13, usar Babel para compilar código que fue específicamente diseñado por un atacante puede hacer que Babel genere código de salida que ejecuta código arbitrario. Esta vulnerabilidad está corregida en la 7.29.4 y la 8.0.0-alpha.13.","source":"nvd"}],"published":"2026-05-08T20:34:07.000Z","modified":"2026-09-10T03:51:05.541Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-94","CWE-843"],"affected":[{"ranges":[{"version":">= 7.12.0, < 7.29.4","status":"affected"},{"version":">= 8.0.0-alpha.0, < 8.0.0-alpha.13","status":"affected"}],"vendor":"babel","product":"babel","source":"cvelist"},{"ranges":[{"version":">= 7.12.0, < 7.29.4","status":"affected"},{"version":">= 8.0.0-alpha.0, < 8.0.0-alpha.13","status":"affected"}],"vendor":"@babel","product":"plugin-transform-modules-systemjs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"7.12.0","status":"affected","fixed":"7.29.4"}],"ecosystem":"npm","package":"@babel/plugin-transform-modules-systemjs","purl":"pkg:npm/%40babel/plugin-transform-modules-systemjs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"8.0.0-alpha.0","status":"affected","fixed":"8.0.0-alpha.13"}],"ecosystem":"npm","package":"@babel/plugin-transform-modules-systemjs","purl":"pkg:npm/%40babel/plugin-transform-modules-systemjs","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"7.12.0","fixed":"7.29.4"},{"status":"affected","version":"8.0.0"},{"status":"affected","version":"8.0.0"},{"status":"affected","version":"8.0.0"},{"status":"affected","version":"8.0.0"},{"status":"affected","version":"8.0.0"},{"status":"affected","version":"8.0.0"},{"status":"affected","version":"8.0.0"},{"status":"affected","version":"8.0.0"},{"status":"affected","version":"8.0.0"},{"status":"affected","version":"8.0.0"},{"status":"affected","version":"8.0.0"},{"status":"affected","version":"8.0.0"},{"status":"affected","version":"8.0.0"}],"vendor":"babel","product":"babel","cpe":"cpe:2.3:a:babel:babel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/babel/babel/security/advisories/GHSA-fv7c-fp4j-7gwp","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44728","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/babel/babel","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-27T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44728","url":"https://www.cve.org/CVERecord?id=CVE-2026-44728","licence":"CVE Terms of Use","modified":"2026-05-28T03:55:38.825Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fv7c-fp4j-7gwp","url":"https://github.com/advisories/GHSA-fv7c-fp4j-7gwp","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:05.541Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44728","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44728","licence":"Public domain","modified":"2026-07-24T11:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:22.360Z","epss":{"score":0.00125,"percentile":0.02389,"date":"2026-12-01T12:00:22.000Z"}}