Skip to content

loader-utils is vulnerable. Will install @angular-devkit/build-angular@12.2.18 #24241

Closed

Description

@pawan-gwebs

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

No

Description

npm audit

npm audit report

loader-utils 3.0.0 - 3.2.0
Severity: high
loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) via url variable - GHSA-3rfm-jhwj-7488
loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) - GHSA-hhq3-ff78-jv3g
fix available via npm audit fix --force
Will install @angular-devkit/build-angular@12.2.18, which is a breaking change
node_modules/loader-utils
@angular-devkit/build-angular 13.0.0-next.0 - 15.0.0-rc.3
Depends on vulnerable versions of loader-utils
node_modules/@angular-devkit/build-angular

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

No response

Anything else?

No response

Activity

  1. added a commit that references this issue on Nov 16, 2022
    0429d36
  2. alan-agius4 commented on Nov 16, 2022

    @alan-agius4
    Collaborator

    We do not expect that the Angular CLI is used on production where this vulnerability can be exploited. That said, we will update loader-utils in version 13.3 and 14.2 of the Angular CLI.

    Please be aware that Angular version 12 is no longer under support. See https://angular.io/guide/releases#actively-supported-versions

  3. added a commit that references this issue on Nov 16, 2022
    44c3c46
  4. gon250 commented on Nov 16, 2022

    @gon250

    I'm having the issue while working with angular-13

    npm audit output:

    # npm audit report
    
    loader-utils  2.0.0 - 2.0.3 || 3.0.0 - 3.2.0
    Severity: high
    loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) via url variable - https://github.com/advisories/GHSA-3rfm-jhwj-7488
    loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) via url variable - https://github.com/advisories/GHSA-3rfm-jhwj-7488
    loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS)  - https://github.com/advisories/GHSA-hhq3-ff78-jv3g
    loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS)  - https://github.com/advisories/GHSA-hhq3-ff78-jv3g
    fix available via `npm audit fix --force`
    Will install @angular-devkit/build-angular@12.2.18, which is a breaking change
    node_modules/@angular-devkit/build-angular/node_modules/loader-utils
    node_modules/loader-utils
      @angular-devkit/build-angular  13.0.0-next.0 - 15.0.0-rc.3
      Depends on vulnerable versions of loader-utils
      node_modules/@angular-devkit/build-angular
    

    package.json details:

    "devDependencies": {
        "@angular-devkit/build-angular": "^13.3.9",
        "@angular-eslint/builder": "13.0.1",
        "@angular-eslint/eslint-plugin": "13.0.1",
        "@angular-eslint/eslint-plugin-template": "13.0.1",
        "@angular-eslint/schematics": "13.0.1",
       ....
    }
    
  5. pawan-gwebs commented on Nov 16, 2022

    @pawan-gwebs
    Author

    We do not expect that the Angular CLI is used on production where this vulnerability can be exploited. That said, we will update loader-utils in version 13.3 and 14.2 of the Angular CLI.

    Please be aware that Angular version 12 is no longer under support. See https://angular.io/guide/releases#actively-supported-versions

    We are already on Angular version 14.2.9 and I have this in "devDependencies" { "@angular-devkit/build-angular": "^14.2.9" }
    This warning was not in "@angular-devkit/build-angular": "^14.2.7".
    This vulnerability issue is due to "loader-utils" dependency of "@angular-devkit/build-angular". May be in latest version "loader-utils".

  6. added a commit that references this issue on Nov 16, 2022
    0ee6421
  7. added 2 commits that reference this issue on Nov 16, 2022
    f298ebb
    21cea0b
  8. alan-agius4 commented on Nov 16, 2022

    @alan-agius4
    Collaborator

    Closed via #24243

  9. pawan-gwebs commented on Nov 17, 2022

    @pawan-gwebs
    Author

    @alan-agius4
    Is your last change has published? I can see only version 15 of "@angular-devkit/build-angular" published 9 hours ago. but no fix on 14.2.9 version of "@angular-devkit/build-angular". I think, new update should be there with fix in version 14.2.x

  10. alan-agius4 commented on Nov 17, 2022

    @alan-agius4
    Collaborator

    @pawan-gwebs, it has not been released yet. Likely it will be released later on during the day today..

  11. pawan-gwebs commented on Nov 17, 2022

    @pawan-gwebs
    Author

    @pawan-gwebs, it has not been released yet. Likely it will be released later on during the day today..

    @alan-agius4 Thank you! for the quick update.

  12. gon250 commented on Nov 17, 2022

    @gon250

    will this change be included in the version 13.x ?? in case it will not be applayed I can create a PR pointing to the right place. thanks @alan-agius4

  13. alan-agius4 commented on Nov 17, 2022

    @alan-agius4
    Collaborator

    @gon250, yes it will. (#24242)

  14. angular-automatic-lock-bot commented on Dec 18, 2022

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

  15. locked and limited conversation to collaborators on Dec 18, 2022
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