VYPR
High severity8.1NVD Advisory· Published May 20, 2024· Updated Apr 15, 2026

CVE-2024-29651

CVE-2024-29651

Description

A Prototype Pollution issue in API Dev Tools json-schema-ref-parser v.11.0.0 and v.11.1.0 allows a remote attacker to execute arbitrary code via the bundle(), parse(), resolve(), dereference() functions.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
@apidevtools/json-schema-ref-parsernpm
>= 11.0.0, < 11.2.011.2.0

Patches

1
8cad7f72c15b

fix(prototype): prevent prototype pollution

1 file changed · +2 1
  • lib/options.ts+2 1 modified
    @@ -182,7 +182,8 @@ export type ParserOptions = DeepPartial<$RefParserOptions>;
      */
     function merge(target: any, source: any) {
       if (isMergeable(source)) {
    -    const keys = Object.keys(source);
    +    // prevent prototype pollution
    +    const keys = Object.keys(source).filter((key) => !["__proto__", "constructor", "prototype"].includes(key));
         for (let i = 0; i < keys.length; i++) {
           const key = keys[i];
           const sourceSetting = source[key];
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

4

News mentions

0

No linked articles in our index yet.