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

exploitDog

github логотип

GHSA-4x5r-pxfx-6jf8

Опубликовано: 15 июн. 2026
Источник: github
Github: Прошло ревью
CVSS3: 3.2

Описание

@babel/core: Arbitrary File Read via sourceMappingURL Comment

Impact

Using @babel/core to compile maliciously crafted code can allow ab attacker to read any source map from the system that is running Babel, if these conditions are all true:

  • the attacker controls the input source code
  • the attacker can read the output source code
  • the attacker knows the path of the source map file that they want to read

Users that only compile trusted code are not impacted.

Patches

The vulnerability has been fixed in @babel/core@7.29.6 and @babel/core@8.0.0-rc.6.

Workarounds

Callers can mitigate the issue without upgrading by setting inputSourceMap: false in their Babel options.

Callers can also manually extract the #sourceMappingURL comment from the input source code, validate whether the source map that it links to is allowed to be read, and if it is pass an object to inputSourceMap (passing false when it's not).

Credits

Thanks Teodor-Cristian Radoi for reporting the vulnerability.

Пакеты

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

@babel/core

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

>= 8.0.0-alpha.0, < 8.0.0-rc.5

8.0.0-rc.6

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

@babel/core

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

<= 7.29.0

7.29.6

EPSS

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

3.2 Low

CVSS3

Дефекты

CWE-200
CWE-22

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

CVSS3: 3.2
ubuntu
около 1 месяца назад

Babel is a compiler for writing next generation JavaScript. Prior to 8.0.0-rc.6 and 7.29.6, @babel/core affected by an arbitrary file read via a sourceMappingURL comment. Using @babel/core to compile maliciously crafted code can allow an attacker to read any source map from the system that is running Babel, if the attacker controls the input source code, can read the output source code, and knows the path of the source map file that they want to read. This vulnerability is fixed in 8.0.0-rc.6 and 7.29.6.

CVSS3: 3.6
redhat
около 1 месяца назад

Babel is a compiler for writing next generation JavaScript. Prior to 8.0.0-rc.6 and 7.29.6, @babel/core affected by an arbitrary file read via a sourceMappingURL comment. Using @babel/core to compile maliciously crafted code can allow an attacker to read any source map from the system that is running Babel, if the attacker controls the input source code, can read the output source code, and knows the path of the source map file that they want to read. This vulnerability is fixed in 8.0.0-rc.6 and 7.29.6.

CVSS3: 3.2
nvd
около 1 месяца назад

Babel is a compiler for writing next generation JavaScript. Prior to 8.0.0-rc.6 and 7.29.6, @babel/core affected by an arbitrary file read via a sourceMappingURL comment. Using @babel/core to compile maliciously crafted code can allow an attacker to read any source map from the system that is running Babel, if the attacker controls the input source code, can read the output source code, and knows the path of the source map file that they want to read. This vulnerability is fixed in 8.0.0-rc.6 and 7.29.6.

msrc
около 1 месяца назад

Babel: Arbitrary File Read via sourceMappingURL Comment in @babel/core

CVSS3: 3.2
debian
около 1 месяца назад

Babel is a compiler for writing next generation JavaScript. Prior to 8 ...

EPSS

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

3.2 Low

CVSS3

Дефекты

CWE-200
CWE-22