openapi-to-graphql
openapi-to-graphql copied to clipboard
Security vulnerability in direct dependency json-ptr CVE-2021-23509
Describe the bug
There is a security vulnerability reported in a direct dependency of openapi-to-graphql. https://nvd.nist.gov/vuln/detail/CVE-2021-23509
As far as I could see this only affects the set method and this package is only using the get method here https://github.com/IBM/openapi-to-graphql/blob/df660f9cacdec669286d00b92f262c3edbce48a8/packages/openapi-to-graphql/src/oas_3_tools.ts#L268-L270
To Reproduce Steps to reproduce the behavior:
- Go to a project where
openapi-to-graphqlis installed - run
npm ls json-ptr - There is a direct dependency in version 2.X
Expected behavior Although this vulnerability is not immediately exploitable this should be upgraded.