Intel

AIKIDO-2026-254207

@apostrophecms/db-connect is vulnerable to Prototype Pollution

Prototype PollutionGHSA-j5rq-xfvr-p969 Published 2 days ago

71

High Risk

This Affects:

JS@apostrophecms/db-connect
0.0.1 - 1.0.2
Fixed in 1.1.0
Are you affected? Scan for Free

TL;DR

A projection exclusion option passed to a MongoDB query can name __proto__ or another prototype chain property, and the db-connect query builder applies that exclusion by deleting the named property directly from the object rather than validating it first. An authenticated user who controls the projection can delete properties from Object.prototype itself, which is shared across the whole running process, and every other request handled by that process then loses access to the deleted prototype member and can crash or misbehave. The patch validates projection exclusion keys before applying them.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use the db-connect module's projection exclusion option.

Background info

@apostrophecms/db-connect is vulnerable to Prototype Pollution in versions 0.0.1 - 1.0.2.

How to fix this

Upgrade the @apostrophecms/db-connect library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform