Skip to content

@angular-devkit/build-angular depends on vulnerable version of webpack - CVE-2024-43788 #28292

Closed

Description

@bgardner-noggin

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

Running npm_audit on an Angular v18 project outputs the following

# npm audit report

webpack  <5.94.0
Severity: moderate
Webpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSS - https://github.com/advisories/GHSA-4vvj-4cpr-p986
No fix available
node_modules/webpack
  @angular-devkit/build-angular  *
  Depends on vulnerable versions of webpack
  node_modules/@angular-devkit/build-angular

2 moderate severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.

Minimal Reproduction

Create a new angular project using the latest v18 @angular-cli
Run npm audit in the project folder

Exception or Error

No response

Your Environment

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 18.2.1
Node: 20.16.0
Package Manager: npm 10.8.1
OS: linux x64

Angular: 
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1802.1 (cli-only)
@angular-devkit/core         18.2.1 (cli-only)
@angular-devkit/schematics   18.2.1 (cli-only)
@schematics/angular          18.2.1 (cli-only)


### Anything else relevant?

_No response_

Activity

  1. deleted a comment from on Aug 28, 2024
  2. added a commit that references this issue on Aug 28, 2024
    eb82778
  3. deleted a comment from ViniciusSCG on Aug 28, 2024
  4. added 2 commits that reference this issue on Aug 28, 2024
    c4258bd
    832e6fc
  5. nicoobkio commented on Aug 28, 2024

    @nicoobkio

    I see you are working on a fix; Can you give us an ETA for the release please ? :-)

  6. added a commit that references this issue on Aug 28, 2024
    82b7608
  7. alan-agius4 commented on Aug 28, 2024

    @alan-agius4
    Collaborator

    Closed via #28294

  8. alan-agius4 commented on Aug 28, 2024

    @alan-agius4
    Collaborator

    A release should happen later today.

  9. SmartKent commented on Aug 28, 2024

    @SmartKent

    A release should happen later today.

    Any patch for previous Angular version, like 17?

  10. 4 remaining items

  11. added 10 commits that reference this issue on Aug 29, 2024
    6cbc660
    90222e3
    d316dd4
    05c7e1c
    870e7cc
    e3b3e07
    1aa9a37
    a9c9ced
    88501f3
    56fa051
  12. Brice155 commented on Sep 5, 2024

    @Brice155

    Any patch for previous Angular version, like 14 ?

    "@angular-devkit/build-angular": { "version": "14.2.13", "requires": { [...] "webpack": "5.76.1", [...] },

  13. alan-agius4 commented on Sep 5, 2024

    @alan-agius4
    Collaborator
  14. programmingPug commented on Oct 3, 2024

    @programmingPug

    Will v17 be getting the patch?

  15. angular-automatic-lock-bot commented on Nov 3, 2024

    @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.

  16. locked and limited conversation to collaborators on Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions