Skip to content

Comments

fix: replace eval() with new Function() in setEdgeNodeValidator to pr…#331

Merged
pradeeban merged 1 commit intoControlCore-Project:devfrom
avinxshKD:fix/xss-eval-validator
Feb 20, 2026
Merged

fix: replace eval() with new Function() in setEdgeNodeValidator to pr…#331
pradeeban merged 1 commit intoControlCore-Project:devfrom
avinxshKD:fix/xss-eval-validator

Conversation

@avinxshKD
Copy link

Closes #307

setEdgeNodeValidator was calling eval() directly on user-supplied validator strings, which meant anyone sharing a graph with a malicious validator could run arbitrary JS in the victim's browser. Swapped to new Function() which keeps the execution out of the local scope no access to this, imports, or closure variables.

@avinxshKD
Copy link
Author

avinxshKD commented Feb 20, 2026

Hey @pradeeban when would be the best time for you to review proposals? Also, for the proposal format you shared, do you want me to follow it strictly line by line, or is it fine if I add a bit of extra context where needed?

I’ve learned a lot from your feedback so far, so I want to align with your preferred format and don't want to deviate if you prefer it as-is.

@pradeeban
Copy link
Member

@avinxshKD you can share the proposal draft in a single email to all three of the mentors. Fine to have extra content. Thanks.

@pradeeban pradeeban merged commit 93a3078 into ControlCore-Project:dev Feb 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants