MediumGHSA-mh4h-27gq-cxwj

Drupal core Access bypass

Published 15 May 2024 · Updated 29 Nov 2024

Affected packages

drupal/coreComposer
Affected
>=8.0.0 <8.7.11
Fixed in
8.7.11
Update to the fixed version for your release line, for example:composer require drupal/core:^8.7.11
drupal/coreComposer
Affected
>=8.8.0 <8.8.1
Fixed in
8.8.1
Update to the fixed version for your release line, for example:composer require drupal/core:^8.8.1

Details

The Media Library module has a security vulnerability whereby it doesn't sufficiently restrict access to media items in certain configurations.

Solution: If you are using Drupal 8.7.x, you should upgrade to Drupal 8.7.11. If you are using Drupal 8.8.x, you should upgrade to Drupal 8.8.1. Versions of Drupal 8 prior to 8.7.x are end-of-life and do not receive security coverage.

Alternatively, you may mitigate this vulnerability by unchecking the "Enable advanced UI" checkbox on /admin/config/media/media-library. (This mitigation is not available in 8.7.x.)

Is GHSA-mh4h-27gq-cxwj in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected drupal/core, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.