Advisory

GHSA-4mph-v827-f877

Details, part 2 of 2. The advisory

Details

Tested Repro Before the Fix

  • Attacker-controlled serialized __proto__ key produced inherited properties on the returned object
  • Object.keys() hid the injected key while 'key' in obj stayed true
  • Built-in methods like hasOwnProperty could be disrupted

Tested State After the Fix in 3.0.25

  • Dangerous keys are kept as own enumerable properties
  • The returned object's prototype is not replaced
  • The regression is covered by test/custom/unserialize-prototype-pollution.vitest.ts

---

The locutus team is treating this as a real package vulnerability with patched version 3.0.25.

Sources & licences