Skip to content

Npm audit error because of json-schema-generator package #92

Description

@mariouhrin

Describe the bug
I'm using this library with prism for building simple mock server service and during CI/CD pipeline build I got a lot of npm audit vulnerabilities. Because of that my pipeline failed.

The old depedencies for json-schema-generator library is causing this npm audit vulnerabilities.

To Reproduce

  1. git clone https://github.com/stoplightio/http-spec
  2. cd http-spec
  3. npm install
  4. npm audit

Expected behavior
You will get high and medium npm audit vulnerabilities like below:

┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Insufficient Entropy                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ cryptiles                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.1.3 <4.0.0 || >=4.1.2                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @stoplight/prism-cli                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @stoplight/prism-cli > @stoplight/prism-http >               │
│               │ @stoplight/http-spec > json-schema-generator > request >     │
│               │ hawk > cryptiles                                             │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/720                             │
└───────────────┴──────────────────────────────────────────────────────────────┘

Environment (remove any that are not applicable):

  • Node v12.14.0
  • npm v6.13.4
  • Mac OS (iterm2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions