1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

how to fix npm audit report of vulnerable dependency 'tar' of '@angular-devkit/build-angular'

Discussão em 'Angular' iniciado por Abhiz, Maio 18, 2025.

  1. Abhiz

    Abhiz Guest

    When I run npm audit command

    === npm audit security report ===

    Manual Review

    Some vulnerabilities require your attention to resolve

    Visit https://go.npm.me/audit-guide for additional guidance `



    High │ Arbitrary File Overwrite

    Package │ tar
    Patched in │ >=4.4.2
    Dependency of │ @angular-devkit/build-angular [dev]
    Path │ @angular-devkit/build-angular > node-sass > node-gyp >tar
    More info │ https://nodesecurity.io/advisories/803


    It's saying found 1 high severity vulnerability in 42611 scanned packages 1 vulnerability requires manual review . As it's related to @angular-devkit/build-angular, I am afraid whether it will create any other issue in my project.

    When I run npm audit fix command

    npm WARN optional SKIPPING OPTIONAL
    DEPENDENCY:fsevents@1.2.9 (node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL
    DEPENDENCY:Unsupported platform for
    fsevents@1.2.9: wanted {"os":"darwin","arch":"any"}
    (current: {"os":"linux","arch":"x64"})


    So how to fix this? I am using Linux operating system. Let's consider ignoring the above npm audit fix result, because it's a warning. But the result of npm audit is considered as a high severity vulnerability. How to fix this?

    Angular CLI Version

    Angular CLI: 7.3.8
    Node: 10.0.0
    OS: linux x64
    Angular: 7.2.14
    ... animations, common, compiler, compiler-cli, core, forms
    ... language-service, platform-browser, platform-browser-dynamic
    ... router

    Package Version
    -----------------------------------------------------------
    @angular-devkit/architect 0.13.8
    @angular-devkit/build-angular 0.13.8
    @angular-devkit/build-optimizer 0.13.8
    @angular-devkit/build-webpack 0.13.8
    @angular-devkit/core 7.3.8
    @angular-devkit/schematics 7.3.8
    @angular/cli 7.3.8
    @ngtools/webpack 7.3.8
    @schematics/angular 7.3.8
    @schematics/update 0.13.8
    rxjs 6.3.3
    typescript 3.2.4
    webpack 4.29.0

    Continue reading...

Compartilhe esta Página