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 she is not authorized to access, can gain read, update and delete access to it.
The issue is fixed in version 0.20.6
Set the apiPrefilter option to a filter object instead of a function.
If you're using a minor version < 0.20 and require a patch, please create an issue.
{
"cwe_ids": [
"CWE-284"
],
"github_reviewed": true,
"github_reviewed_at": "2023-06-20T18:50:15Z",
"nvd_published_at": "2023-06-23T20:15:09Z",
"severity": "MODERATE"
}