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
According to MDN docs on proto, all A.__proto__ = B should actually be Object.setPrototypeOf(A, B). __proto__ is only allowed to keep compatibility, and represents a huge security vulnerability surface.
This would also allow "hardening" nodejs with --disable-proto=delete|throw.
The text was updated successfully, but these errors were encountered:
According to MDN docs on proto, all
A.__proto__ = B
should actually beObject.setPrototypeOf(A, B)
.__proto__
is only allowed to keep compatibility, and represents a huge security vulnerability surface.This would also allow "hardening" nodejs with
--disable-proto=delete|throw
.The text was updated successfully, but these errors were encountered: