Advisory

GHSA-r9vp-fp72-xgf7

Also known as: None

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-05-27 18:58 UTC
Modified
2024-12-02 05:39 UTC

Affected packages and fixes

silverstripe/framework

Packagist · All systems

Affected

  • introduced 3.1.9-rc1, fixed 3.1.20 (ecosystem)

Fixed versions

3.1.20

Fix

The export has no generic command for this ecosystem.

silverstripe/framework

Packagist · All systems

Affected

  • introduced 3.2.4-rc1, fixed 3.2.5 (ecosystem)

Fixed versions

3.2.5

Fix

The export has no generic command for this ecosystem.

silverstripe/framework

Packagist · All systems

Affected

  • introduced 3.3.2-rc1, fixed 3.3.3 (ecosystem)

Fixed versions

3.3.3

Fix

The export has no generic command for this ecosystem.

silverstripe/framework

Packagist · All systems

Affected

  • introduced 3.4.0-rc1, fixed 3.4.1 (ecosystem)

Fixed versions

3.4.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences