Skip to content

Add vulnerability ID to regular and verbose output #23

@fwielstra

Description

@fwielstra

Running auditjs naively in my project gives me an exit code of 3 and one security issue (sockjs/sockjs-node#217). Since this is not used in production for our application (tracing the dependency points to express and webpack-dev-server), I'd like to disable it.

The guide says to run auditjs -r, however when I do that, this issue is not output in the resulting xml file. The output also seems to report a lot more security issues than running without arguments. Probably also listing vulnerabilities that do not apply, so, safe enough I guess.

Running auditjs -v outputs all of the vulnerabilities, but without IDs again.

So a few things:

  • Issue is not reported (anymore) when running auditjs -r
  • xml output breaks when json contains a >, e.g. in vulnerability with ID 8402848607
  • ID is not displayed in regular output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions