open-source-parsers.jsoncpp is vulnerable to Out-of-bounds Read
75
High Risk
In OurReader::readToken, when allowSingleQuotes_ is false, a single-quote (') token was handled with an intentional fall-through into the / case so input could be mis-tokenized as a comment. That path drives further parsing and Json::Value::setComment work on inconsistent state. OSS-Fuzz (ClusterFuzz, Chromium issue 989851) reproduced an address-sanitizer failure along OurReader::parse → setComment. The fix treats disallowed single quotes as an explicit parse failure (ok = false) and always breaks out of the ' case so execution cannot fall through into comment handling.
You are affected if you are using a version that falls within the vulnerable range.
open-source-parsers.jsoncpp is vulnerable to Out-of-bounds Read in versions 1.5.4 - 1.9.3.
Upgrade the open-source-parsers.jsoncpp library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant