# CVE-2023-35167: When setting EntityOptions.apiPrefilter to a function, the filter is not applied to API requests for a resource by Id

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2023-06-20T18:50:15.000Z
- Modified: 2026-09-10T03:49:53.848Z
- Also known as: GHSA-7hh3-3x64-v2g9
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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 the `apiPrefilter` option to a filter object instead of a function.

(As written by CVE List.)

## Affected

- remult remult: < 0.20.6; before 0.20.6
- remult (npm): before 0.20.6

## Every score

- GitHub_M: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://github.com/remult/remult/security/advisories/GHSA-7hh3-3x64-v2g9> (third-party-advisory, web)
- <https://github.com/remult/remult/commit/6892ae97134126d8710ef7302bb2fc37730994c5> (patch, web)
- <https://github.com/remult/remult/releases/tag/v0.20.6> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-35167> (advisory)
- <https://github.com/remult/remult> (package)

## Sources

- CVE List: [CVE-2023-35167](https://www.cve.org/CVERecord?id=CVE-2023-35167), CVE Terms of Use, modified 2024-11-07
- GitHub Advisory Database: [GHSA-7hh3-3x64-v2g9](https://github.com/advisories/GHSA-7hh3-3x64-v2g9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-35167](https://nvd.nist.gov/vuln/detail/CVE-2023-35167), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-35167 · Whole record: https://cve.day/CVE-2023-35167.json · Rebuilt by cve.day 2026-11-25T22:58:25.196Z
