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/54

To fix the prototype pollution issue, we need to ensure that the path array does not contain any keys that could modify Object.prototype, such as __proto__, constructor, or prototype. We can achieve this by adding a validation step in the constructor to filter out any such keys from the path array.

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-54 branch March 29, 2025 12:42
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