MediumGHSA-h377-287m-w2r9CVE-2017-6921

Drupal file REST resource does not properly validate

Published 13 May 2022 · Updated 23 Apr 2024

Affected packages

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

Details

In Drupal 8 prior to 8.3.4; The file REST resource does not properly validate some fields when manipulating files. A site is only affected by this if the site has the RESTful Web Services (rest) module enabled, the file REST resource is enabled and allows PATCH requests, and an attacker can get or register a user account on the site with permissions to upload files and to modify the file resource.

Is GHSA-h377-287m-w2r9 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.