Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. silverstripe/framework
  4. ›
  5. GHSA-97jm-g33h-f46g

GHSA-97jm-g33h-f46g: silverstripe/framework ReadOnly transformation for formfields exploitable

May 23, 2024

Form fields returning isReadonly() as true are vulnerable to reflected XSS injections. This includes ReadonlyField, LookupField, HTMLReadonlyField, as well as special purpose fields like TimeField_Readonly. Values submitted to through these form fields are not filtered out from the form session data, and might be shown to the user depending on the form behaviour. For example, form validation errors cause the form to re-render with previously submitted values by default.

SilverStripe forms automatically load values from request data (GET and POST), which enables malicious use of URLs if your form uses these fields and doesn’t overwrite data on form construction.

Readonly and disabled form fields are already filtered out in Form->saveInto(), so maliciously submitted data on these fields doesn’t make it into the database unless you are accessing form values directly in your saving logic.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2016-010-1.yaml
  • github.com/advisories/GHSA-97jm-g33h-f46g
  • github.com/silverstripe/silverstripe-framework
  • github.com/silverstripe/silverstripe-framework/commit/8336cb96b9600dacafa8a525c92662345b52cfae
  • www.silverstripe.org/download/security-releases/ss-2016-010

Code Behaviors & Features

Detect and mitigate GHSA-97jm-g33h-f46g with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.21, all versions starting from 3.2.0 before 3.2.6, all versions starting from 3.3.0 before 3.3.4, all versions starting from 3.4.0 before 3.4.2

Fixed versions

  • 3.1.21
  • 3.2.6
  • 3.3.4
  • 3.4.2

Solution

Upgrade to versions 3.1.21, 3.2.6, 3.3.4, 3.4.2 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/silverstripe/framework/GHSA-97jm-g33h-f46g.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:13 +0000.