VDB
Sign up
HIGH7.4

GHSA-p8g6-5mg7-9r5q

Drupal REST API can bypass comment approval

Quick fix

GHSA-p8g6-5mg7-9r5q — drupal/core: upgrade to the fixed version with the command below.

composer require drupal/core:^8.3.7

Details

In Drupal 8 prior to 8.3.7; When using the REST API, users without the correct permission can post comments via REST that are approved even if the user does not have permission to post approved comments. This issue only affects sites that have the RESTful Web Services (rest) module enabled, the comment entity REST resource enabled, and where an attacker can access a user account on the site with permissions to post comments, or where anonymous users can post comments.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/drupal/core
Introduced in: 8.0Fixed in: 8.3.7
Fixcomposer require drupal/core:^8.3.7
Packagist/drupal/drupal
Introduced in: 8.0Fixed in: 8.3.7
Fixcomposer require drupal/drupal:^8.3.7

References