[BUG] Using constructor
as node ID results in errors
#5451
Labels
Good first issue!
Status: Approved
Is ready to be worked on
Type: Bug / Error
Something isn't working or is incorrect
Description
When someone uses
constructor
or__proto__
as the node ID, then it results in errors since it overrides internal object properties. This isn't prototype pollution, this is just overriding these values can generate errors.Steps to reproduce
__proto__
orconstructor
Screenshots
constructor
__proto__
Code Sample
Setup
Suggested Solutions
This should be a pretty simple fix by replacing usages of objects in the
db
files withMap
s. However, I noticed that theclasses
are exported through thegetClasses
function on some of the diagrams. So, would switching toMap
be considered a breaking change? Another option is to encode the keys before they are inserted into the objects.Additional Context
No response
The text was updated successfully, but these errors were encountered: