# CVE-2025-27089: Overlapping policies allow update to non-allowed fields in directus

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.42% (percentile 28, 2026-11-26)
- **CWE:** CWE-863
- **Aliases:** GHSA-99vm-5v2h-h6r6
- **Published:** 2025-02-19T16:42:48.233Z
- **Modified:** 2026-06-17T09:03:00.700Z

## Who should check

- Projects that depend on npm package directus (\>= 11.0.0, \< 11.1.2)
- Projects that depend on npm package @directus/api (\>= 22.0.0, \< 23.1.0)
- Anyone running directus \>= 11.0.0, \< 11.1.2

## Description

Directus is a real-time API and App dashboard for managing SQL database content. In affected versions if there are two overlapping policies for the \`update\` action that allow access to different fields, instead of correctly checking access permissions against the item they apply for the user is allowed to update the superset of fields allowed by any of the policies. E.g. have one policy allowing update access to \`field\_a\` if the \`id == 1\` and one policy allowing update access to \`field\_b\` if the \`id == 2\`. The user with both these policies is allowed to update both \`field\_a\` and \`field\_b\` for the items with ids \`1\` and \`2\`. Before v11, if a user was allowed to update an item they were allowed to update the fields that the single permission, that applied to that item, listed. With overlapping permissions this isn't as clear cut anymore and the union of fields might not be the fields the user is allowed to update for that specific item. The solution that this PR introduces is to evaluate the permissions for each field that the user tries to update in the validateItemAccess DB query, instead of only verifying access to the item as a whole. This is done by, instead of returning the actual field value, returning a flag that indicates if the user has access to that field. This uses the same case/when mechanism that is used for stripping out non permitted field that is at the core of the permissions engine. As a result, for every item that the access is validated for, the expected result is an item that has either 1 or null for all the "requested" fields instead of any of the actual field values. These results are not useful for anything other than verifying the field level access permissions. The final check in validateItemAccess can either fail if the number of items does not match the number of items the access is checked for (ie. the user does not have access to the item at all) or if not all of the passed in fields have access permissions for any of the returned items. This is a vulnerability that allows update access to unintended fields, potentially impacting the password field for user accounts. This has been addressed in version 11.1.2 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

## Affected and fixed versions

- npm `directus`: affected \>= 11.0.0, \< 11.1.2; fixed 11.1.2 (osv)
- npm `@directus/api`: affected \>= 22.0.0, \< 23.1.0; fixed 23.1.0 (osv)
- directus: \>= 11.0.0, \< 11.1.2 (cvelist)

## Mitigation

- Upgrade directus to 11.1.2 or later.
- Upgrade @directus/api to 23.1.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-27089. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-27089.md
Affected: directus >= 11.0.0, < 11.1.2; @directus/api >= 22.0.0, < 23.1.0
Fixed in: 11.1.2, 23.1.0

Steps:
1. Search this machine and project for directus (npm), @directus/api (npm), directus: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-27089 being exploited?

There is no confirmed exploitation: CVE-2025-27089 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.42% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-27089?

Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2025-27089?

directus \>= 11.0.0, \< 11.1.2; @directus/api \>= 22.0.0, \< 23.1.0.

### Is there a fix for CVE-2025-27089?

Yes. Fixed in 11.1.2, 23.1.0. Upgrade directus to 11.1.2 or later. Upgrade @directus/api to 23.1.0 or later.

### How do I check if I'm affected by CVE-2025-27089?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/directus/directus/security/advisories/GHSA-99vm-5v2h-h6r6>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-27089>
- patch: <https://github.com/directus/directus/commit/a7ea67783b060d0d6fc964d71c2d4575d5eee4e2>
- other: <https://github.com/directus/directus/releases/tag/v11.1.2>
- other: <https://github.com/directus/directus>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-27089>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-99vm-5v2h-h6r6> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-27089> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-27089>
