Prototype pollution can happen when objects are used as maps, and the key names can come from user data (or are otherwise open ended). We should guard against this by preferring Object.createObject( null ) over {} when creating such objects.
Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| Use a null prototype for objects, to guard against prototype pollution | Divec | VisualEditor/VisualEditor | master | +139 -128 |
Event Timeline
Comment Actions
Change #1049598 had a related patch set uploaded (by Divec; author: Divec):
[VisualEditor/VisualEditor@master] Use a null prototype for objects, to guard against prototype pollution