Skip to content

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

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.

Activity

  1. added this to the needsTriage milestone on Jun 19, 2026
  2. added 5 commits that reference this issue on Jun 19, 2026
    d03bfd2
    4ddea65
    5d2e577
    568a7be
    6a06ce9
  3. added 5 commits that reference this issue on Jun 22, 2026
    9c366e8
    637b848
    7f236cf
    36adca9
    94fb3c1
  4. adchsm commented on Jun 23, 2026

    @adchsm
    Author

    Thank you for the quick fix ❤️

  5. angular-automatic-lock-bot commented on Jul 24, 2026

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  6. locked and limited conversation to collaborators on Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions