Skip to content

fix: the functions updatenodeproperties() and update... in layout.js#1173

Open
orbisai0security wants to merge 27 commits into
juliangarnier:devfrom
orbisai0security:fix-prototype-pollution-layout-v001
Open

fix: the functions updatenodeproperties() and update... in layout.js#1173
orbisai0security wants to merge 27 commits into
juliangarnier:devfrom
orbisai0security:fix-prototype-pollution-layout-v001

Conversation

@orbisai0security

Copy link
Copy Markdown

Summary

Fix high severity security issue in src/layout/layout.js.

Vulnerability

Field Value
ID V-001
Severity HIGH
Scanner multi_agent_ai
Rule V-001
File src/layout/layout.js:1271

Description: The functions updateNodeProperties() and updateNodeTimingParams() in src/layout/layout.js accept externally-supplied property objects (enterFromProps, enterFromTimings) and apply them to animation nodes. If these functions use Object.assign() or direct bracket-notation property assignment without filtering prototype-polluting keys such as 'proto', 'constructor', or 'prototype', an attacker who can control the animation configuration object passed to the anime.js API can inject properties into the global JavaScript Object prototype. This affects every object in the page's JavaScript runtime, not just animation objects.

Changes

  • src/layout/layout.js

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

Automated security fix by OrbisAI Security

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