GHSA-jqp8-v74p-g8px: Silverstripe XSS in Director::force_redirect()
6.1
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
5/23/2024
Updated
5/23/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
silverstripe/framework | composer | >= 3.1.0, < 3.1.12 | 3.1.12 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the original implementation of force_redirect()
constructing HTML content with unescaped $destURL parameter. The patch replaced this unsafe manual HTML construction with a proper redirect()
method that handles URL sanitization. The direct string interpolation of user-controlled input ($destURL) into HTML context without escaping matches classic XSS vulnerability patterns. The commit diff clearly shows removal of vulnerable HTML construction and the CWE-79 classification confirms this is an output sanitization issue.