{"id":"CVE-2023-35167","aliases":["CVE-2023-35167","GHSA-7hh3-3x64-v2g9"],"related":[],"kind":"vulnerability","state":"published","title":"When setting EntityOptions.apiPrefilter to a function, the filter is not applied to API requests for a resource by Id","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nIf you used the [apiPrefilter](https://remult.dev/docs/ref_entity.html#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 she is not authorized to access, can gain read, update and delete access to it.\n\n### Patches\nThe issue is fixed in version 0.20.6\n\n### Workarounds\nSet the `apiPrefilter` option to a filter object instead of a function.\n\n### References\nIf you're using a minor version < 0.20 and require a patch, please create an issue.","format":"markdown","source":"ghsa"}],"published":"2023-06-20T18:50:15.000Z","modified":"2026-09-10T03:49:53.848Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-284"],"affected":[{"ranges":[{"version":"< 0.20.6","status":"affected"}],"vendor":"remult","product":"remult","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.20.6"}],"ecosystem":"npm","package":"remult","purl":"pkg:npm/remult","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.20.6"}],"vendor":"remult","product":"remult","cpe":"cpe:2.3:a:remult:remult:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/remult/remult/security/advisories/GHSA-7hh3-3x64-v2g9","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/remult/remult/commit/6892ae97134126d8710ef7302bb2fc37730994c5","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/remult/remult/releases/tag/v0.20.6","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-35167","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/remult/remult","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-11-07T19:04:21.714Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-35167","url":"https://www.cve.org/CVERecord?id=CVE-2023-35167","licence":"CVE Terms of Use","modified":"2024-11-07T19:04:32.133Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7hh3-3x64-v2g9","url":"https://github.com/advisories/GHSA-7hh3-3x64-v2g9","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:53.848Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-35167","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-35167","licence":"Public domain","modified":"2026-06-17T06:04:32.340Z"}],"updatedAt":"2026-11-25T22:58:25.196Z","epss":{"score":0.00546,"percentile":0.47175,"date":"2026-12-01T12:00:22.000Z"}}