GHSA-585j-5449-mf5m

Suggest an improvement
Source
https://github.com/advisories/GHSA-585j-5449-mf5m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-585j-5449-mf5m/GHSA-585j-5449-mf5m.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-585j-5449-mf5m
Aliases
Published
2022-05-14T03:35:58Z
Modified
2024-04-23T22:59:05.528541Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Drupal cross-site scripting vulnerability
Details

Drupal 8.4.x versions before 8.4.5 and Drupal 7.x versions before 7.57 has a Drupal.checkPlain() JavaScript function which is used to escape potentially dangerous text before outputting it to HTML (as JavaScript output does not typically go through Twig autoescaping). This function does not correctly handle all methods of injecting malicious HTML, leading to a cross-site scripting vulnerability under certain circumstances. The PHP functions which Drupal provides for HTML escaping are not affected.

Database specific
{
    "nvd_published_at": "2018-03-01T23:29:00Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-04-23T22:36:53Z"
}
References

Affected packages

Packagist / drupal/core

Package

Name
drupal/core
Purl
pkg:composer/drupal/core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
8.4.0
Fixed
8.4.5

Affected versions

8.*

8.4.0
8.4.1
8.4.2
8.4.3
8.4.4

Packagist / drupal/core

Package

Name
drupal/core
Purl
pkg:composer/drupal/core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.0
Fixed
7.57

Packagist / drupal/drupal

Package

Name
drupal/drupal
Purl
pkg:composer/drupal/drupal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
8.4.0
Fixed
8.4.5

Affected versions

8.*

8.4.0
8.4.1
8.4.2
8.4.3
8.4.4

Packagist / drupal/drupal

Package

Name
drupal/drupal
Purl
pkg:composer/drupal/drupal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.0
Fixed
7.57