Untrusted Search Path Affecting compass-preferences-model package, versions <2.18.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-COMPASSPREFERENCESMODEL-9005465
  • published28 Feb 2025
  • disclosed27 Feb 2025
  • creditT. Doğa Gelişli

Introduced: 27 Feb 2025

NewCVE-2025-1755  (opens in a new tab)
CWE-426  (opens in a new tab)

How to fix?

Upgrade compass-preferences-model to version 2.18.1 or higher.

Overview

compass-preferences-model is a Compass preferences model

Affected versions of this package are vulnerable to Untrusted Search Path due to the improper handling of file storage in the C:\node_modules\ directory. An attacker can execute unauthorized actions with elevated privileges by storing a crafted file in this specific directory.

Note:

This is only exploitable if the user executes MongoDB Compass with elevated privileges.

CVSS Scores

version 4.0
version 3.1