{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-35167","id":"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":"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 t","descriptionLong":"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.","published":"2023-06-23T19:03:54.753Z","updated":"2026-10-28T02:31:11.752047511Z","reserved":"2023-06-14T14:17:52.179Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"NVD"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["remult"],"affectedProducts":[{"vendor":"remult","product":"remult","defaultStatus":null,"versions":[{"version":"< 0.20.6","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"remult","purl":"pkg:npm/remult","ranges":["<0.20.6"],"fixed":["0.20.6"],"advisory":"GHSA-7hh3-3x64-v2g9"}],"cwes":["CWE-284"],"aliases":["GHSA-7hh3-3x64-v2g9"],"references":[{"url":"https://github.com/remult/remult/security/advisories/GHSA-7hh3-3x64-v2g9","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/remult/remult/commit/6892ae97134126d8710ef7302bb2fc37730994c5","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/remult/remult/releases/tag/v0.20.6","tags":["x_refsource_MISC","x_transferred","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/35xxx/CVE-2023-35167.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-35167","tags":["advisory"]},{"url":"https://github.com/remult/remult","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00546,"epssPercentile":0.4654,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-35167","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-35167","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-35167","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7hh3-3x64-v2g9","ok":true,"note":"GHSA-7hh3-3x64-v2g9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-35167","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}