You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
H3 v2 is removing destr support from readBody utility. This is to reduce bundle size and leverage native Response.json() of the runtime platforms when possible.
While we should ALWAYS validate user input, in certain cases, user input might cause prototype poisoning.
We can introduce new readSafeJSONBody util with destr
Additional information
Would you be willing to help implement this feature?
The text was updated successfully, but these errors were encountered:
Hey @pi0, is the impact on the bundle size really that big that is make sense to sacrifice secure JSON parsing (I would argue that destr performance impact is negligible)?
Describe the feature
H3 v2 is removing destr support from
readBody
utility. This is to reduce bundle size and leverage nativeResponse.json()
of the runtime platforms when possible.While we should ALWAYS validate user input, in certain cases, user input might cause prototype poisoning.
We can introduce new
readSafeJSONBody
util with destrAdditional information
The text was updated successfully, but these errors were encountered: