schema-tools
schema-tools copied to clipboard
Dependency `@bahmutov/is-my-json-valid` contains vulnerable sub-dependency - `[email protected]` - and is outdated
Hi @bahmutov / maintainers,
Summary
The @bahmutov/is-my-json-valid dependency of this repository contains (at least) one vulnerable sub-dependency - [email protected]. See this advisory about CVE-2021-23807 in the GitHub Advisory Database for details about the vulnerability.
My research so far
-
This repository contains a dependency named
@bahmutov/is-my-json-valid.https://github.com/cypress-io/schema-tools/blob/b0d1a36912e399864aa563d96c7638211e56d898/package.json#L34
-
The code for this dependency is hosted on this GitHub repository.
-
Upon closer inspection, I found that the GitHub repository at
bahmutov/is-my-json-validwas forked from the GitHub repository atmafintosh/is-my-json-valid(that has been published to thenpmregistry atis-my-json-valid) around April, 2018. -
As of today (Wednesday, March 23, 2022), the
masterbranch of the forked repositorybahmutov/is-my-json-validis 2 commits ahead and 43 commits behind themasterbranch of it's base repository -mafintosh/is-my-json-valid. There is even an open Pull Request to merge the changes from these 2 commits into the base repository - https://github.com/mafintosh/is-my-json-valid/pull/161. -
Meanwhile, both
mafintosh/is-my-json-validand consequentlybahmutov/is-my-json-validemploy another sub-dependency -jsonpointer. -
A Moderate security vulnerability was found in
[email protected]. The vulnerability has been documented at CVE-2021-23807 for details. -
The maintainer(s) of the
node-jsonpointerrepository fixed this issue via https://github.com/janl/node-jsonpointer/pull/51. And later published a new major version -[email protected]. -
After this, the maintainer(s) of
mafintosh/is-my-json-validupgraded to[email protected]via https://github.com/mafintosh/is-my-json-valid/pull/188. -
However, the forked repository -
bahmutov/is-my-json-valid- has not been kept up to date with these new commits. -
Hence, every cypress repository employing any versions of the
@cypress/schema-toolsplugin until v4.7.9 inherit the same security vulnerability - CVE-2021-23807 - incoming from[email protected].
Please assist in fixing / patching this security vulnerability. Or provide any suggestions about what users of this plugin should be doing in the interim.
NOTE: Technically, this issue belongs in https://github.com/bahmutov/is-my-json-valid repository. But that repository does NOT allow me to open an Issue (I don't see the "Issues" tab at the top). So, I am opening this issue here.