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

json-schema-sampler vulnerable to CVE-2021-23820 #24

Open
AaronSterlingGENEICD opened this issue Dec 31, 2021 · 1 comment
Open

json-schema-sampler vulnerable to CVE-2021-23820 #24

AaronSterlingGENEICD opened this issue Dec 31, 2021 · 1 comment

Comments

@AaronSterlingGENEICD
Copy link

AaronSterlingGENEICD commented Dec 31, 2021

Describe the bug

@stoplightio/json-schema-sampler depends on json-pointer, which is vulnerable to CVE-2021-23820. json-pointer has not been updated in a year, Would it be possible for stoplight to remediate this by moving to another library?

To Reproduce

Install stoplight/elements 6 or 7, then run npm audit --production

Expected behavior

0 production vulnerabilities

Additional context

npm audit report

json-pointer *
Severity: moderate
Prototype Pollution in json-pointer - GHSA-v5vg-g7rq-363w
fix available via npm audit fix --force
Will install @stoplight/[email protected], which is a breaking change
node_modules/json-pointer
@stoplight/json-schema-sampler *
Depends on vulnerable versions of json-pointer
node_modules/@stoplight/json-schema-sampler
@stoplight/elements-core *
Depends on vulnerable versions of @stoplight/json-schema-sampler
node_modules/@stoplight/elements-core
@stoplight/elements >=6.0.0-alpha.1
Depends on vulnerable versions of @stoplight/elements-core
Depends on vulnerable versions of @stoplight/http-spec
node_modules/@stoplight/elements

Screenshots
none

Environment (remove any that are not applicable):
Worth noting: npm audit fix --force causes other stoplight problems.
Thank you for considering this!

@mgrsskls
Copy link

json-pointer has been updated to fix the vulnerability: manuelstofer/json-pointer@931b0f9

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

2 participants