Skip to content

Backport esbuild and @babel/core security bumps to the 21.2.x LTS branch #33420

@adchsm

Description

@adchsm

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

@angular/build on the 21.2.x branch still depends on two transitives with published GitHub security advisories:

Transitive Version on 21.2.x Advisory Severity Patched in
esbuild 0.27.3 GHSA-g7r4-m6w7-qqqr — arbitrary file read via dev-server on Windows CVSS 3.1: 2.5 (Low) 0.28.1
@babel/core 7.29.0 GHSA-4x5r-pxfx-6jf8 / CVE-2026-49356 — arbitrary file read via sourceMappingURL CVSS 3.1: 3.2 (Low) 7.29.6

Source confirmed on the branch: https://github.com/angular/angular-cli/blob/21.2.x/packages/angular/build/package.json

Real-world impact for consumers is bounded — both are dev/build-time, and the esbuild advisory is Windows-only. The request here is procedural: these surface on every npm audit against an Angular 21 project, and downstream consumers (especially those with security-scanning gates in CI) cannot resolve them without forking or moving to v22.

Precedent for backports

Backports of this exact shape have already happened recently, including on this branch:

Per Angular's release policy at https://angular.dev/reference/releases, a fix qualifies for an LTS branch if it addresses "a newly identified security vulnerability", which the precedent issues above were treated as.

Minimal Reproduction

npx -p @angular/cli@21.2.16 -- ng new repro --defaults --skip-git --skip-install
cd repro
npm i
npm audit

npm audit reports the advisories above against transitives of @angular/build. The same audit run against a project on @angular/cli@22.0.x (post-#33384/#33385) shows the esbuild line cleared.

(Note: vite is already addressed by #33408 on the 21.2.x branch and will clear with the next 21.2.x release.)

Exception or Error

n/a — not a runtime error; advisories surface in `npm audit` only.

Your Environment

Angular CLI: 21.2.16
Node: 24.0.0
Package Manager: npm 11.x
OS: darwin arm64

Angular: 21.2.17
... @angular/build 21.2.16
... esbuild 0.27.3
... @babel/core 7.29.0

Anything else relevant?

Thanks for considering — and thanks for the prompt vite backport in #33408 yesterday, much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions