CVE-2023-5256: Cache poisoning in drupal/core

drupal/core Updated 02 Oct 2025

Summary

28/09/2023
Yes i
Critical
Not published

CVE-2023-5256: Cache poisoning in drupal/core. Affects drupal/core across 3 version ranges.

>= 8.7.0, < 9.5.11 >= 10.0.0, < 10.0.11 >= 10.1.0, < 10.1.4

Fixed in 9.5.11, 10.0.11 or 10.1.4, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2023-5256 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Drupal is an open-source content management system (CMS) written in PHP. It provides a flexible framework for building websites and applications. The JSON:API module in Drupal allows developers to expose Drupal entities as JSON data. This vulnerability affects sites with the JSON:API module enabled.

Vulnerability Detail

The JSON:API module in Drupal may output error backtraces in certain scenarios. If sensitive information is included in these error backtraces, it can be cached and made available to anonymous users. This can lead to privilege escalation and unauthorized access to sensitive data. The vulnerability can be mitigated by uninstalling the JSON:API module. The core REST and contributed GraphQL modules are not affected.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 8.7.0, < 9.5.11 9.5.11
    composer require drupal/core:9.5.11
  • >= 10.0.0, < 10.0.11 10.0.11
    composer require drupal/core:10.0.11
  • >= 10.1.0, < 10.1.4 10.1.4
    composer require drupal/core:10.1.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround for this vulnerability. Uninstalling the JSON:API module is the recommended solution.

Conclusion

The cache poisoning vulnerability in Drupal's JSON:API module can lead to privilege escalation and unauthorized access to sensitive information. It is recommended to uninstall the JSON:API module and update Drupal core to a fixed version. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for drupal/core →

Share this vulnerability

FAQ

Drupal versions 8.7.0 to 9.5.11 and 10.0.0 to 10.0.11 are affected by this vulnerability.

Yes, you can continue using the JSON:API module if you have updated to a fixed version of Drupal core.

Yes, Drupal provides other modules like REST and GraphQL that can be used as alternatives to JSON:API.

No, uninstalling the JSON:API module is the recommended solution. There is no specific patch available.

The vulnerability can lead to privilege escalation and unauthorized access to sensitive information, potentially compromising the security of the Drupal site.

Related vulnerabilities

Recent vulnerabilities recorded for drupal/core.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 8.7.0, < 9.5.11 9.5.11
    composer require drupal/core:9.5.11
  • >= 10.0.0, < 10.0.11 10.0.11
    composer require drupal/core:10.0.11
  • >= 10.1.0, < 10.1.4 10.1.4
    composer require drupal/core:10.1.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback