-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
superjson recently started throwing on values that contain a constructor property:
superjson.stringify({ constructor: { name: 'hello' } })
// throws Error: Detected property constructor. This is a prototype pollution risk, please remove it from your object.We're transferring values that contain jsonschemas that describe user generated typescript interfaces. Therefore we don't have control over which property names are in our objects, but we do know they are plain javascript objects.
Any way this restriction can be relaxed again?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels