Loading HuntDB...

GHSA-p8g6-5mg7-9r5q

GitHub Security Advisory

Drupal REST API can bypass comment approval

✓ GitHub Reviewed HIGH Has CVE

Advisory 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.

Affected Packages

Packagist drupal/core
Affected versions: 8.0 (fixed in 8.3.7)
Packagist drupal/drupal
Affected versions: 8.0 (fixed in 8.3.7)

Related CVEs

Key Information

GHSA ID
GHSA-p8g6-5mg7-9r5q
Published
May 13, 2022 1:36 AM
Last Modified
April 23, 2024 10:32 PM
CVSS Score
7.5 /10
Primary Ecosystem
Packagist
Primary Package
drupal/core
GitHub Reviewed
✓ Yes

Dataset

Last updated: June 18, 2025 6:25 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.