# GHSA-34q6-xqxh-gq39: Silverstripe XSS In rewritten hash links

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-23T15:21:44.000Z
- Modified: 2024-11-28T05:39:53.028Z
- Weaknesses: CWE-79

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- silverstripe/framework (Packagist): before 3.0.13; from 3.1.0 before 3.1.12

## References

- <https://github.com/silverstripe/silverstripe-framework/commit/604c32871202064a4aa12c3b3fd58140231685e5> (web)
- <https://github.com/silverstripe/silverstripe-framework/commit/bdef4fc7a548c7c243ff86f2db7c16f301a6f120> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2015-009-1.yaml> (web)
- <https://www.silverstripe.org/software/download/security-releases/ss-2015-009-xss-in-rewritten-hash-links> (web)

## Sources

- GitHub Advisory Database: [GHSA-34q6-xqxh-gq39](https://github.com/advisories/GHSA-34q6-xqxh-gq39), CC-BY-4.0, modified 2024-11-28

---

Page: https://cve.day/GHSA-34q6-xqxh-gq39 · Whole record: https://cve.day/GHSA-34q6-xqxh-gq39.json · Rebuilt by cve.day 2026-11-25T22:56:30.839Z
