Advisory

GHSA-34q6-xqxh-gq39

Also known as: None

Summary

Silverstripe XSS In rewritten hash links

Details

A high level XSS vulnerability has been discovered in the SilverStripe framework which causes links containing hash anchors (E.g. href="#anchor") to be rewritten in an unsafe way.

The rewriteHashlinks option on SSViewer will rewrite these to contain the current url, although without adequate escaping, meaning that HTML could be injected via injecting unsafe values to any page via the querystring.

Due to the nature of this issue it is likely that a large number of SilverStripe sites are affected.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-05-23 15:21 UTC
Modified
2024-11-28 05:39 UTC

Affected packages and fixes

silverstripe/framework

Packagist · All systems

Affected

  • introduced 0, fixed 3.0.13 (ecosystem)

Fixed versions

3.0.13

Fix

The export has no generic command for this ecosystem.

silverstripe/framework

Packagist · All systems

Affected

  • introduced 3.1.0, fixed 3.1.12 (ecosystem)

Fixed versions

3.1.12

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