---
title: "GHSA-fv7c-fp4j-7gwp: @babel/plugin-transform-modules-systemjs generates arbitrary code when compiling malicious input"
description: "High severity. @babel/plugin-transform-modules-systemjs generates arbitrary code when compiling malicious input."
url: https://inlinr.com/advisories/GHSA-fv7c-fp4j-7gwp
lang: en
---

[Packages](https://inlinr.com/packages) / [@babel/plugin-transform-modules-systemjs](https://inlinr.com/packages/@babel/plugin-transform-modules-systemjs) / [Security](https://inlinr.com/packages/@babel/plugin-transform-modules-systemjs/security)

High Vulnerability GHSA-fv7c-fp4j-7gwp CVE-2026-44728 Published 8 May 2026

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

Your version 

Affected releases · [@babel/plugin-transform-modules-systemjs](https://inlinr.com/packages/@babel/plugin-transform-modules-systemjs)

- 7.x 7.12.0 – 7.29.0 Fixed in 7.29.4

On 7.x, the newest line:

```
npm install @babel/plugin-transform-modules-systemjs@7.29.4
```

Every release on a timeline

8.x 

1. Not affected

8.0.0 – 8.1.0  
3 releases, latest

7.x 

1. Not affected

7.0.0 – 7.10.5  
18 releases
2. Affected

7.12.0 – 7.29.0  
35 releases
3. Fixed

7.29.4 – 7.29.8  
3 releases

59 stable releases of @babel/plugin-transform-modules-systemjs, oldest to newest, one row per major.

## What happens

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](https://inlinr.com/packages/@babel/plugin-transform-modules-systemjs)
- [@babel/preset-env](https://inlinr.com/packages/@babel/preset-env) when using the [modules: "systemjs" option](https://babel.dev/docs/babel-preset-env#modules "https://babel.dev/docs/babel-preset-env#modules"), as it delegates to [@babel/plugin-transform-modules-systemjs](https://inlinr.com/packages/@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](https://inlinr.com/packages/@babel/plugin-transform-modules-systemjs) dependency, to simplify forcing the update if you are using [@babel/preset-env](https://inlinr.com/packages/@babel/preset-env) directly.

Workarounds

- Pin [@babel/parser](https://inlinr.com/packages/@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](https://inlinr.com/packages/@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.

## How it is exploited

Exploitable with local access, with a low-privilege account and a user to do something.

- **Confidentiality**: high
- **Integrity**: high
- **Availability**: high

CVSS:3.1/​AV:L/​AC:L/​PR:L/​UI:R/​S:C/​C:H/​I:H/​A:H

## References

- [Reference](https://github.com/babel/babel/security/advisories/GHSA-fv7c-fp4j-7gwp "https://github.com/babel/babel/security/advisories/GHSA-fv7c-fp4j-7gwp")  
github.com/babel/babel/security/advisories/GHSA…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-44728 "https://nvd.nist.gov/vuln/detail/CVE-2026-44728")  
nvd.nist.gov/vuln/detail/CVE-2026-44728
- [Package](https://github.com/babel/babel "https://github.com/babel/babel")  
github.com/babel/babel

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
