CVE-2026-54721: Silverstripe/userforms Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-g8wr-r2v2-vqc6
CVSS 8.8
CWE-94 CWE-20
Published
Advisory Summary

CVE-2026-54721 is a HIGH (CVSS 8.8) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Silverstripe/userforms libraries in the Packagist ecosystem. The issue involves silverstripe/userforms vulnerable to remote code execution via userforms email subject. Remediation is available by upgrading affected packages to version 6.4.9, 7.0.7, 7.1.1.

CVE-2026-54721 at a Glance

CVE Identifier CVE-2026-54721
GHSA Identifier GHSA-g8wr-r2v2-vqc6
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Silverstripe/userforms
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-54721

To remediate this vulnerability, upgrade all affected Silverstripe/userforms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

silverstripe/userforms fixed: 6.4.9
Upgrade silverstripe/userforms to 6.4.9
silverstripe/userforms fixed: 7.0.7
Upgrade silverstripe/userforms to 7.0.7
silverstripe/userforms fixed: 7.1.1
Upgrade silverstripe/userforms to 7.1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for silverstripe/userforms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-54721, inspect your project dependencies for Silverstripe/userforms:

inspect dependencies for silverstripe/userforms

Analyze the terminal output to locate any version of Silverstripe/userforms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.4.9), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Silverstripe/userforms, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The userform email subject field in the CMS is vulnerable to a specially crafted payload being used to run arbitrary code on the server. ### Reported by Jack Wallace from Bastion Security

CVE-2026-54721 Affected Silverstripe/userforms Versions

3 component(s)
Fixed Versions:
6.4.97.0.77.1.1
Product / Package Ecosystem Affected Versions Fixed Version
silverstripe/userforms
Packagist
< 6.4.9
6.4.9
silverstripe/userforms
Packagist
≥ 7.0.0
< 7.0.7
7.0.7
silverstripe/userforms
Packagist
≥ 7.1.0
< 7.1.1
7.1.1

References

Frequently Asked Questions

What is CVE-2026-54721?
CVE-2026-54721 is a security vulnerability in Silverstripe/userforms involving silverstripe/userforms vulnerable to remote code execution via userforms email subject under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Silverstripe/userforms versions are affected?
Affected versions include releases prior to 6.4.9, 7.0.7, 7.1.1 across affected packages: silverstripe/userforms.
What version fixes CVE-2026-54721?
Upgrading to 6.4.9, 7.0.7, 7.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is silverstripe/userforms affected?
Yes, silverstripe/userforms is affected in releases prior to 6.4.9, 7.0.7, 7.1.1. Upgrade your dependency to 6.4.9, 7.0.7, 7.1.1 or later.
What is the CVSS score of CVE-2026-54721?
CVE-2026-54721 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-54721?
CVE-2026-54721 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Packagist dependencies for CVE-2026-54721?
Run the dependency tree command: 'inspect dependencies for silverstripe/userforms'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g8wr-r2v2-vqc6",
  "modified" : "2026-08-27T16:53:18Z",
  "published" : "2026-08-27T16:53:17Z",
  "aliases" : [ "CVE-2026-54721" ],
  "summary" : "silverstripe/userforms vulnerable to remote code execution via userforms email subject",
  "details" : "### Impact\nThe userform email subject field in the CMS is vulnerable to a specially crafted payload being used to run arbitrary code on the server.\n\n### Reported by\nJack Wallace from Bastion Security",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/userforms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.4.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/userforms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.0.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/userforms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.1.0"
      }, {
        "fixed" : "7.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-userforms/security/advisories/GHSA-g8wr-r2v2-vqc6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-userforms/pull/1441"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-userforms/pull/1442"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-userforms/commit/23c069866900c19b499bfa997d1e251e97491702"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-userforms/commit/c55494ad7c717b199a3c1663b43a54db5d95604c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/userforms/CVE-2026-54721.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/silverstripe/silverstripe-userforms"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-userforms/releases/tag/6.4.9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-userforms/releases/tag/7.0.7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-userforms/releases/tag/7.1.1"
  }, {
    "type" : "WEB",
    "url" : "https://www.silverstripe.org/download/security-releases/cve-2026-54721"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-27T16:53:17Z",
    "nvd_published_at" : null
  }
}