Skip to content

Fix mongoose normalization preventing detection - #963

Merged
hansott merged 10 commits into
mainfrom
mongoose-fix
Aug 14, 2026
Merged

Fix mongoose normalization preventing detection#963
hansott merged 10 commits into
mainfrom
mongoose-fix

Conversation

@timokoessler

@timokoessler timokoessler commented Mar 12, 2026

Copy link
Copy Markdown
Member

Summary by Aikido

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

🚀 New Features

  • Added Mongoose wrapper to capture original query filters during operations

⚡ Enhancements

  • Registered Mongoose wrapper in protect startup to enable detection integration
  • Added clone helper polyfill for structuredClone to support Node.js v16
  • Added mongoose dependency to package.json to include new wrapper runtime

🐛 Bugfixes

  • Changed MongoDB sink to check original not-normalized filter when inspecting

More info

@codecov

codecov Bot commented Mar 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread library/sinks/Mongoose.ts
Comment thread library/package.json
@hansott
hansott merged commit 33e84f6 into main Aug 14, 2026
32 of 34 checks passed
@hansott
hansott deleted the mongoose-fix branch August 14, 2026 08:27
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