/Vulnerability Library

Directus < 11.9.0 - Version Disclosure

CVE-2025-53887
Early Release

Description

Directus versions from 9.0.0 before 11.9.0 expose the exact running version through the OpenAPI specification returned by the unauthenticated /server/specs/oas endpoint. The version is placed in the OpenAPI info.version field, letting an unauthenticated attacker fingerprint the precise Directus release. The fix replaces the exact version in that field with a hashed value.

Severity

Medium

CVSS Score

5.3

Exploit Probability

0%

Affected Product

directus

Published Date

August 24, 2026

Template Author

chrisjr404

CVE-2025-53887.yaml
id: CVE-2025-53887

info:
  name: Directus < 11.9.0 - Version Disclosure
  author: ChrisJr404
  severity: medium
  description: |
    Directus versions from 9.0.0 before 11.9.0 expose the exact running version through the OpenAPI specification returned by the unauthenticated /server/specs/oas endpoint. The version is placed in the OpenAPI info.version field, letting an unauthenticated attacker fingerprint the precise Directus release. The fix replaces the exact version in that field with a hashed value.
  impact: |
    An unauthenticated attacker can read the exact Directus version and use it to look up known vulnerabilities in that release or its bundled dependencies.
  remediation: |
    Upgrade to Directus 11.9.0 or later, where the OpenAPI info.version field no longer contains the exact version.
  reference:
    - https://github.com/directus/directus/security/advisories/GHSA-rmjh-cf9q-pv7q
    - https://github.com/directus/directus/pull/25353
    - https://github.com/directus/directus/commit/e74f3e4e92edc33b5f83eefb001a3d2a85af17a3
    - https://nvd.nist.gov/vuln/detail/CVE-2025-53887
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2025-53887
    epss-score: 0.00456
    epss-percentile: 0.37765
    cwe-id: CWE-200
  metadata:
    verified: false
    max-request: 1
    vendor: monospace
    product: directus
    shodan-query: 'X-Powered-By: Directus'
    fofa-query: 'header="X-Powered-By: Directus"'
  tags: cve,cve2025,directus,exposure,disclosure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/server/specs/oas"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Dynamic API Specification"
          - "This is a dynamically generated API specification"
        condition: and

      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'compare_versions(version, ">= 9.0.0", "< 11.9.0")'
        condition: and

    extractors:
      - type: regex
        name: version
        group: 1
        regex:
          - 'dynamically generated API specification for all endpoints existing on the current project\.",\s*"version":\s*"([0-9]+\.[0-9]+\.[0-9]+)"'
# digest: 4a0a00473045022054d69c8f01cb7fb8cb42925467f850629a34d18a8061cc1a130bf5dc00340450022100819e97b6c304d2e71398c3b91e68094aabab365d4975f3e1ed78fa26887d5205:922c64590222798bb761d5b6d8e72950
5.3Score

CVSS Metrics

CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVE ID:
cve-2025-53887
CWE ID:
cwe-200

References

https://github.com/directus/directus/security/advisories/GHSA-rmjh-cf9q-pv7qhttps://github.com/directus/directus/pull/25353https://github.com/directus/directus/commit/e74f3e4e92edc33b5f83eefb001a3d2a85af17a3https://nvd.nist.gov/vuln/detail/CVE-2025-53887

Remediation Steps

Upgrade to Directus 11.9.0 or later, where the OpenAPI info.version field no longer contains the exact version.