{"id":"GHSA-7hh3-3x64-v2g9","revision":"e0d447f8e8ef4cc5911670c7b6643b78","records":[{"revision":"e0d447f8e8ef4cc5911670c7b6643b78","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-7hh3-3x64-v2g9","aliases":["CVE-2023-35167"],"title":"When setting EntityOptions.apiPrefilter to a function, the filter is not applied to API requests for a resource by Id","description":"### 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.","state":0,"publishedAt":"2023-06-20T18:50:15+00:00","modifiedAt":"2026-09-10T03:49:53.8485943+00:00","affected":[{"ecosystem":"npm","name":"remult","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.20.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/remult/remult/security/advisories/GHSA-7hh3-3x64-v2g9","https://nvd.nist.gov/vuln/detail/CVE-2023-35167","https://github.com/remult/remult/commit/6892ae97134126d8710ef7302bb2fc37730994c5","https://github.com/remult/remult","https://github.com/remult/remult/releases/tag/v0.20.6"],"sourceUrl":"https://github.com/advisories/GHSA-7hh3-3x64-v2g9","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-7hh3-3x64-v2g9","identifiers":["GHSA-7hh3-3x64-v2g9","CVE-2023-35167"]},"retained":false,"historicalAffected":[]}],"coverage":[]}