Vulnerabilities |
3 via 3 paths |
|---|---|
Dependencies |
217 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
medium severity
new
- Vulnerable module: mongodb
- Introduced through: mongodb@6.22.0
Detailed paths
-
Introduced through: kms@nasa/kms › mongodb@6.22.0Remediation: Upgrade to mongodb@7.9.1.
Overview
mongodb is an official MongoDB driver for Node.js.
Affected versions of this package are vulnerable to Improper Neutralization of Null Byte or NUL Character in the plain.js PLAIN authentication provider, which builds the SASL PLAIN message by joining the username and password with NUL separators without rejecting NUL characters inside either field. A user with valid credentials for one identity can authenticate as that identity instead of the one the application constructed, bypassing application-side identity checks such as an allow list or a required username suffix, by supplying a username containing NUL-separated authentication and password values. This affects only applications that use authMechanism: 'PLAIN' and build the username or password from less trusted input.
Workaround
This vulnerability can be avoided by rejecting any username or password that contains a NUL character (\0, or %00 in a connection string) before passing it to MongoClient.
Remediation
Upgrade mongodb to version 7.9.1 or higher.
References
medium severity
new
- Vulnerable module: mongodb
- Introduced through: mongodb@6.22.0
Detailed paths
-
Introduced through: kms@nasa/kms › mongodb@6.22.0Remediation: Upgrade to mongodb@7.9.0.
Overview
mongodb is an official MongoDB driver for Node.js.
Affected versions of this package are vulnerable to Improper Restriction of Communication Channel to Intended Endpoints via OIDC ENVIRONMENT and callback confusion in MongoCredentials validation, where specifying both an ENVIRONMENT value and an OIDC_CALLBACK or OIDC_HUMAN_CALLBACK bypasses the ALLOWED_HOSTS restriction. A bearer token produced by the application's own login callback can therefore be transmitted to a host outside the configured set of permitted hosts, resulting in unintended disclosure of that credential.
Remediation
Upgrade mongodb to version 7.9.0 or higher.
References
medium severity
new
- Vulnerable module: mongodb
- Introduced through: mongodb@6.22.0
Detailed paths
-
Introduced through: kms@nasa/kms › mongodb@6.22.0Remediation: Upgrade to mongodb@7.9.1.
Overview
mongodb is an official MongoDB driver for Node.js.
Affected versions of this package are vulnerable to Information Exposure in the HostAddress class in utils.ts and the parseOptions function in connection_string.ts, which include connection-string components in the messages and cause of errors thrown during MongoClient construction and connection. An attacker with access to the application's logs can obtain database credentials when the application passes a connection string with credentials but no valid host, because the user:pass portion is parsed as host:port and appears in the resulting Unable to parse ... with URL error and its cause.input. This affects only applications that build connection strings from user or configuration input where a missing or malformed host can reach the driver, and that log driver errors or MongoClient instances.
Workaround
This vulnerability can be avoided by validating that connection strings contain a host before passing them to the driver, and by redacting the message and cause of errors raised during MongoClient construction or connection before logging them.
Remediation
Upgrade mongodb to version 7.9.1 or higher.
References
medium severity
- Module: lightningcss
- Introduced through: vite@8.3.8
Detailed paths
-
Introduced through: kms@nasa/kms › vite@8.3.8 › lightningcss@1.33.0
MPL-2.0 license