Skip to content

Fix handling of Maps and other non plain object types#970

Open
timokoessler wants to merge 2 commits intomainfrom
nosql-maps
Open

Fix handling of Maps and other non plain object types#970
timokoessler wants to merge 2 commits intomainfrom
nosql-maps

Conversation

@timokoessler
Copy link
Member

@timokoessler timokoessler commented Mar 25, 2026

Summary by Aikido

Security Issues: 0 Quality Issues: 0 Resolved Issues: 0

⚡ Enhancements

  • Extended string extraction to handle Map, Set, and other types.
  • Added URLSearchParams, FormData, and Headers handling in extraction logic.
  • Updated NoSQL injection detection to convert Map instances to plain objects.
  • Adjusted MongoDB wrapper to inspect non-plain filter arguments for detection.
  • Updated MongoDB tests to cover additional non-plain object and Map cases.

More info

@codecov
Copy link

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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