z-schema is vulnerable to Prototype Pollution
60
Medium Risk
Affected versions of z-schema are vulnerable to prototype pollution due to unsafe handling of user-controlled schema properties during schema compilation. The implementation allows special property names such as __proto__, constructor, or prototype to be assigned directly onto internal objects without validation. An attacker can supply a crafted schema containing these keys, resulting in modification of Object.prototype and pollution of subsequently created objects.
You are affected if you are using a version that falls within the vulnerable range.
z-schema is vulnerable to Prototype Pollution in versions 3.0.0 - 12.0.4.
Upgrade the z-schema 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