fix: prototype pollution in deserializer (#2255)

This is not exploitable in practice unless a user maliciously crafts
serialized values in __FRSH_STATE, because `serializer()` never outputs
serialized representation that would be vulnerable to prototype
pollution. But hey, defense in depth.
This commit is contained in:
Luca Casonato
2024-01-15 18:03:59 +00:00
committed by GitHub
parent 3bc43a1327
commit 8583394481
3 changed files with 43 additions and 12 deletions
+1
View File
@@ -14,6 +14,7 @@ export {
assertNotMatch,
assertRejects,
assertStringIncludes,
assertThrows,
} from "https://deno.land/std@0.211.0/assert/mod.ts";
export { assertSnapshot } from "https://deno.land/std@0.211.0/testing/snapshot.ts";
export {