Skip to content

Conversation

@ardatan
Copy link
Member

@ardatan ardatan commented Jan 21, 2025

Potential fix for https://github.com/graphql-hive/gateway/security/code-scanning/55

To fix the prototype pollution issue, we need to ensure that the keys used to access and modify the data object are safe and do not include special property names like __proto__. One way to achieve this is by validating the keys in the path array before using them. We can reject any keys that match __proto__, constructor, or prototype.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…ignment

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@ardatan ardatan closed this in #506 Jan 23, 2025
@ardatan ardatan deleted the alert-autofix-55 branch March 29, 2025 12:41
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.

1 participant