Vulnerability in is-my-json-valid package
Summary
GHSA-ccq6-3qx5-vmqx: Moderate severity vulnerability that affects is-my-json-valid. Affects is-my-json-valid versions < 2.12.4. Fixed in 2.12.4. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The is-my-json-valid package is a popular npm package used for JSON validation in Node.js applications. It provides a simple and efficient way to validate JSON data against a JSON schema. The package is widely used in various applications and has a large user base.
Vulnerability Detail
The is-my-json-valid package before version 2.12.4 for Node.js contains a moderate severity vulnerability. The package has an incorrect regular expression for the 'utc-millisec' export, which can be exploited by remote attackers. This vulnerability can lead to a denial of service (blocked event loop) by causing the application to hang or become unresponsive when processing a crafted string.
How To Fix
Minimum fixed version
2.12.4
This is the first release that contains the fix.
npm install is-my-json-valid@2.12.4
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version of the package to mitigate the risk.
Conclusion
The is-my-json-valid package before version 2.12.4 for Node.js is affected by a moderate severity vulnerability that can lead to a denial of service. It is crucial for developers to upgrade to the fixed version (2.12.4) to mitigate the risk. For more information or assistance, please contact DevNack.com.
See every vulnerability recorded for is-my-json-valid →
FAQ
The vulnerability can cause a denial of service (blocked event loop) in Node.js applications using the is-my-json-valid package. This can lead to application downtime and unresponsiveness.
You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert Playground will analyze it for any known vulnerabilities.
There are no known public exploits for this vulnerability at the moment. However, it is still crucial to upgrade to the fixed version to prevent any potential attacks.
Modifying the regular expression manually is not recommended as it may introduce other issues or break the functionality of the package. It is best to upgrade to the fixed version provided by the package maintainers.
For further support on vulnerability remediation or any other security concerns, you can reach out to info@devnack.com. Our team of experts will be happy to assist you.
References
Related vulnerabilities
Recent vulnerabilities recorded for is-my-json-valid.