GHSA-r9vp-fp72-xgf7

Suggest an improvement
Source
https://github.com/advisories/GHSA-r9vp-fp72-xgf7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-r9vp-fp72-xgf7/GHSA-r9vp-fp72-xgf7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-r9vp-fp72-xgf7
Published
2024-05-27T18:58:08Z
Modified
2024-12-02T05:39:38.734396Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
silverstripe/framework's `Member.Name` is not escaped
Details

The core template framework/templates/Includes/GridField_print.ss uses "Printed by $Member.Name".

If the currently logged in members first name or surname contain XSS, this prints the raw HTML out, because Member->getName() just returns the raw FirstName + Surname as a string, which is injected directly.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-05-27T18:58:08Z"
}
References

Affected packages

Packagist / silverstripe/framework

Package

Name
silverstripe/framework
Purl
pkg:composer/silverstripe/framework

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.1.9-rc1
Fixed
3.1.20

Affected versions

3.*

3.1.9-rc1
3.1.9
3.1.10-rc1
3.1.10-rc2
3.1.10
3.1.11-rc1
3.1.11
3.1.12
3.1.13-rc1
3.1.13
3.1.14-rc1
3.1.14
3.1.15
3.1.16-rc1
3.1.16
3.1.17-rc1
3.1.17-rc2
3.1.17
3.1.18-rc1
3.1.18-rc2
3.1.18
3.1.19-rc1
3.1.19
3.1.20-rc1
3.1.20-rc2

Packagist / silverstripe/framework

Package

Name
silverstripe/framework
Purl
pkg:composer/silverstripe/framework

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.2.4-rc1
Fixed
3.2.5

Affected versions

3.*

3.2.4-rc1
3.2.4
3.2.5-rc1
3.2.5-rc2

Packagist / silverstripe/framework

Package

Name
silverstripe/framework
Purl
pkg:composer/silverstripe/framework

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.3.2-rc1
Fixed
3.3.3

Affected versions

3.*

3.3.2-rc1
3.3.2
3.3.3-rc1
3.3.3-rc2

Packagist / silverstripe/framework

Package

Name
silverstripe/framework
Purl
pkg:composer/silverstripe/framework

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.4.0-rc1
Fixed
3.4.1

Affected versions

3.*

3.4.0-rc1
3.4.0
3.4.1-rc1
3.4.1-rc2