Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulnerability in dependancy #2611

Closed
rory-ferguson opened this issue Oct 15, 2024 · 5 comments
Closed

Vulnerability in dependancy #2611

rory-ferguson opened this issue Oct 15, 2024 · 5 comments

Comments

@rory-ferguson
Copy link

There is a vulnerability disclosed recently in a package this library is dependant on.

There is a PR to fix this here: json-schema-faker/json-schema-faker#822

I am on @stoplight/prism-cli version 5.10.0

Vulnerability is disclosed here GHSA-pppg-cpfq-h7wr

# npm audit report

jsonpath-plus  <10.0.0
Severity: critical
JSONPath Plus Remote Code Execution (RCE) Vulnerability - https://github.com/advisories/GHSA-pppg-cpfq-h7wr
fix available via `npm audit fix --force`
Will install @stoplight/prism-cli@4.4.3, which is a breaking change
node_modules/jsonpath-plus
  json-schema-faker  0.5.0-rc1 - 0.5.0-rcv.46 || >=0.5.2
  Depends on vulnerable versions of jsonpath-plus
  node_modules/json-schema-faker
    @stoplight/prism-cli  *
    Depends on vulnerable versions of @stoplight/prism-http
    Depends on vulnerable versions of @stoplight/prism-http-server
    Depends on vulnerable versions of json-schema-faker
    node_modules/@stoplight/prism-cli
    @stoplight/prism-http  >=3.0.0-alpha.0
    Depends on vulnerable versions of json-schema-faker
    node_modules/@stoplight/prism-http
      @stoplight/prism-http-server  *
      Depends on vulnerable versions of @stoplight/prism-http
      node_modules/@stoplight/prism-http-server

5 critical severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force
@rory-ferguson rory-ferguson changed the title Vulnerability in dependancy json-schema-faker Vulnerability in dependancy Oct 15, 2024
@rory-ferguson
Copy link
Author

To be precise the vulnerability is present for the jsonpath-plus dependancy which is a dependency of json-schema-faker library that prism is dependant on.

@bo-acc
Copy link
Contributor

bo-acc commented Nov 13, 2024

indeed, this vulnerability is introduced via json-schema-faker. I have checked and the latest version of json-schema-faker patches jsonpath-plus https://github.com/json-schema-faker/json-schema-faker/blob/master/package.json#L103

@bo-acc
Copy link
Contributor

bo-acc commented Nov 13, 2024

I have raise a PR

@mnaumanali94
Copy link
Contributor

This should be fixed in 5.11.1 release. Thanks @bo-acc

@bo-acc
Copy link
Contributor

bo-acc commented Nov 14, 2024

This should be fixed in 5.11.1 release. Thanks @bo-acc

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants