Improper Authorization Affecting remult package, versions <0.20.6


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.12% (48th percentile)

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-REMULT-5725776
  • published21 Jun 2023
  • disclosed20 Jun 2023
  • creditUnknown

Introduced: 20 Jun 2023

CVE-2023-35167  (opens in a new tab)
CWE-285  (opens in a new tab)

How to fix?

Upgrade remult to version 0.20.6 or higher.

Overview

remult is an A CRUD framework for full-stack TypeScript

Affected versions of this package are vulnerable to Improper Authorization such that when setting EntityOptions.apiPrefilter to a function, the filter is not applied to API requests for a resource by Id. As a result, an attacker can gain read, update and delete access to an instance.

Note:

An attacker will need to prepare the attack by gaining access to an id of an entity instance he is not authorized to access.

Workaround

Users who are unable to upgrade to the fixed version can set the apiPrefilter option to a filter object instead of a function.

CVSS Scores

version 3.1