{"id":"CVE-2023-35167","published":"2023-06-23T19:03:54Z","modified":"2024-11-07T19:04:32Z","title":"When setting EntityOptions.apiPrefilter to a function, the filter is not applied to API requests for a resource by Id","vendor":"remult","product":"remult","tier":"tail","description":{"text":"Remult is a CRUD framework for full-stack TypeScript. If you used the apiPrefilter option of the `@Entity` decorator, by setting it to a function that returns a filter that prevents unauthorized access to data, an attacker who knows the `id` of an entity instance is not authorized to access, can gain read, update and delete access to it. The issue is fixed in version 0.20.6. As a workaround, set the `apiPrefilter` option to a filter object instead of a function.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00546,"percentile":0.46673,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://github.com/remult/remult/security/advisories/GHSA-7hh3-3x64-v2g9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/remult/remult/commit/6892ae97134126d8710ef7302bb2fc37730994c5","tags":["x_refsource_MISC"]},{"url":"https://github.com/remult/remult/releases/tag/v0.20.6","tags":["x_refsource_MISC"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":9.33},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"remult","affectedVersions":[{"vendor":"remult","product":"remult","versions":["< 0.20.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-07T19:04:21.714944Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"remult","vulnerableRanges":["<0.20.6"],"patched":["0.20.6"],"from":["GHSA-7hh3-3x64-v2g9"],"provenance":"source"}],"summary":{"text":"The Remult CRUD framework for full-stack TypeScript fails to apply a function-based EntityOptions.apiPrefilter (set on the @Entity decorator) to API requests that access a single resource by its Id. An attacker with network access and low privileges who knows the Id of an entity instance they should not be allowed to reach can read, update, or delete it, though exploiting it is considered high complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:12Z"},"euvd":{"id":"EUVD-2023-1733","exploited":false,"provenance":"source"}}