-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[email protected] prototype setting when bundling json containing a __proto__
key
#3700
Comments
lucacasonato
changed the title
[email protected] prototype pollution when bundling json containing a
[email protected] prototype setting when bundling json containing a Mar 14, 2024
__proto__
key__proto__
key
Was broken by ac36537. Discovered through tests in https://github.com/lucacasonato/esbuild_deno_loader |
Hmm, I think this perhaps never really worked. Version 0.20.0 can generate incorrect output as well. Thanks for the report! I'll fix this in the next release. |
Thanks @evanw for the quick fix! |
This was referenced May 21, 2024
This was referenced May 28, 2024
This was referenced May 29, 2024
This was referenced Jun 2, 2024
This was referenced Jun 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the 0.20.1 output, the
__proto__
field of the JSON is incorrectly written as__proto__: __proto__
. This sets the prototype ofstdin_default
rather than a__proto__
key, like was happening in 0.20.0 and below.This may be a security issue if users bundle untrusted JSON files into their code (but probably not that bad).
The text was updated successfully, but these errors were encountered: