Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-fv7c-fp4j-7gwp

Опубликовано: 08 мая 2026
Источник: github
Github: Прошло ревью
CVSS3: 8.2

Описание

@babel/plugin-transform-modules-systemjs generates arbitrary code when compiling malicious input

Impact

Using Babel to compile code that was specifically crafted by an attacker can cause Babel to generate output code that executes arbitrary code.

Known affected plugins are:

  • @babel/plugin-transform-modules-systemjs
  • @babel/preset-env when using the modules: "systemjs" option, as it delegates to @babel/plugin-transform-modules-systemjs

No other plugins under the @babel namespace are impacted.

Users that only compile trusted code are not impacted.

Patches

The vulnerability has been fixed in @babel/plugin-transform-modules-systemjs@7.29.4.

Babel 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.

Workarounds

  • 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.
  • Do not use the modules: "systemjs" option, migrate the codebase to native ES Modules or any other module formats.

Credits

Babel thanks Daniel Cervera for reporting the vulnerability.

Пакеты

Наименование

@babel/plugin-transform-modules-systemjs

npm
Затронутые версииВерсия исправления

>= 7.12.0, <= 7.29.3

7.29.4

Наименование

@babel/plugin-transform-modules-systemjs

npm
Затронутые версииВерсия исправления

>= 8.0.0-alpha.0, <= 8.0.0-alpha.12

8.0.0-alpha.13

EPSS

Процентиль: 3%
0.00125
Низкий

8.2 High

CVSS3

Дефекты

CWE-843
CWE-94

Связанные уязвимости

CVSS3: 8.2
ubuntu
2 месяца назад

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.

CVSS3: 8.2
nvd
2 месяца назад

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.

CVSS3: 8.2
debian
2 месяца назад

Babel is a compiler for writing next generation JavaScript. From 7.12. ...

CVSS3: 8.2
fstec
3 месяца назад

Уязвимость модуля трансформации кода в формат SystemJS компилятора для написания JavaScript-кода Babel, позволяющая нарушителю выполнить произвольный код

EPSS

Процентиль: 3%
0.00125
Низкий

8.2 High

CVSS3

Дефекты

CWE-843
CWE-94