Description Preview
Babel, a compiler for next-generation JavaScript, has a vulnerability in versions prior to 7.26.10 and 8.0.0-alpha.17. When these versions are used to compile regular expression named capturing groups, Babel generates a polyfill for the `.replace` method that has quadratic complexity on some specific replacement pattern strings. The generated code is vulnerable if all the following conditions are met: Using Babel to compile regular expression named capturing groups, using the `.replace` method on a regular expression that contains named capturing groups, and the code using untrusted strings as the second argument of `.replace`. This vulnerability has been fixed in `@babel/helpers` and `@babel/runtime` 7.26.10 and 8.0.0-alpha.17.
Overview
The vulnerability is related to inefficient RegExp complexity in generated code with .replace when transpiling named capturing groups. It has a base score of 6.2 and a base severity of medium. The attack complexity is low and the attack vector is local. The availability impact is high, while the confidentiality and integrity impacts are none.
Remediation
The problem has been fixed in @babel/helpers
and @babel/runtime
7.26.10 and 8.0.0-alpha.17. Users are advised to upgrade to these versions. Note that just updating Babel dependencies is not enough; one will also need to re-compile the code. No known workarounds are available.
References
Industry ExposureMost to leastThis section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
- ManufacturingManufacturing
- Professional, Scientific, & Technical ServicesProfessional, Scientific, & Technical Services
- Finance and InsuranceFinance and Insurance
- Public AdministrationPublic Administration
- Retail TradeRetail Trade
- Arts, Entertainment & RecreationArts, Entertainment & Recreation
- Management of Companies & EnterprisesManagement of Companies & Enterprises
- Health Care & Social AssistanceHealth Care & Social Assistance
- Transportation & WarehousingTransportation & Warehousing
- Educational ServicesEducational Services
- Other Services (except Public Administration)Other Services (except Public Administration)
- Accommodation & Food ServicesAccommodation & Food Services
- Administrative, Support, Waste Management & Remediation ServicesAdministrative, Support, Waste Management & Remediation Services
- Agriculture, Forestry Fishing & HuntingAgriculture, Forestry Fishing & Hunting
- ConstructionConstruction
- InformationInformation
- MiningMining
- Real Estate Rental & LeasingReal Estate Rental & Leasing
- UtilitiesUtilities
- Wholesale TradeWholesale Trade