CVE-2026-54503: Plone.app.textfield Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-4r4f-gg25-rmg5
CVSS 4.3
CWE-80
Published
Advisory Summary

CVE-2026-54503 is a MODERATE (CVSS 4.3) cross-site scripting vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Plone.app.textfield libraries in the PyPI ecosystem. The issue involves stored xss by spoofing mime type. Remediation is available by upgrading affected packages to version 2.0.2, 3.0.2, 4.0.1.

CVE-2026-54503 at a Glance

CVE Identifier CVE-2026-54503
GHSA Identifier GHSA-4r4f-gg25-rmg5
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Affected Product Plone.app.textfield
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.3

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:L/I:N/A:N).

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 Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-54503

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

plone.app.textfield fixed: 2.0.2
pip install plone.app.textfield>=2.0.2
plone.app.textfield fixed: 3.0.2
pip install plone.app.textfield>=3.0.2
plone.app.textfield fixed: 4.0.1
pip install plone.app.textfield>=4.0.1
Verify Direct and Transitive Dependencies

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

pip show plone.app.textfield

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-54503, inspect your installed packages using pip:

pip show plone.app.textfield

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

Note: The pip show plone.app.textfield command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. In Plone.app.textfield, 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 A stored XSS affecting RichText fields. RichTextValue.output returns the raw, unsanitized stored value whenever the stored mimeType equals the outputMimeType. Because the safe-HTML output type (`text/x-html-safe`) is the type that signifies "already sanitized", any value whose stored mimeType equals it bypasses the safe_html transform entirely on render. The transform itself is sound — it correctly strips `on*` event-handler attributes and `javascript:/data:` URIs; the defect is that it is never invoked for these values. The unsanitized value is then emitted via `tal:content="structure ..."`, which performs no escaping, so the payload executes in the viewer's browser. This can be a problem when a RichText field is wrongly defined in code with a `mimeType` and `outputMimeType` that are the same, or when the REST API is used to the same effect. ### Patches The problem has been patched: * For Plone 6.0, upgrade `plone.app.textfield` to 2.0.2. * For Plone 6.1, upgrade `plone.app.textfield` to 3.0.2. * For Plone 6.2, upgrade `plone.app.textfield` to 4.0.1. ### Workarounds There is no known workaround.

CVE-2026-54503 Affected Plone.app.textfield Versions

3 component(s)
Fixed Versions:
2.0.23.0.24.0.1
Product / Package Ecosystem Affected Versions Fixed Version
plone.app.textfield
PyPI
< 2.0.2
2.0.2
plone.app.textfield
PyPI
≥ 3.0.0
< 3.0.2
3.0.2
plone.app.textfield
PyPI
≥ 4.0.0
< 4.0.1
All 1 versions
4.0.0
4.0.1

References

Frequently Asked Questions

What is CVE-2026-54503?
CVE-2026-54503 is a security vulnerability in Plone.app.textfield involving Stored XSS by spoofing mime type under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS).
Which Plone.app.textfield versions are affected?
Affected versions include releases prior to 2.0.2, 3.0.2, 4.0.1 across affected packages: plone.app.textfield.
What version fixes CVE-2026-54503?
Upgrading to 2.0.2, 3.0.2, 4.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is plone.app.textfield affected?
Yes, plone.app.textfield is affected in releases prior to 2.0.2, 3.0.2, 4.0.1. Upgrade your dependency to 2.0.2, 3.0.2, 4.0.1 or later.
What is the CVSS score of CVE-2026-54503?
CVE-2026-54503 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-54503?
CVE-2026-54503 is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) (The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.).
How can I check PyPI dependencies for CVE-2026-54503?
Run the dependency tree command: 'pip show plone.app.textfield'. 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-4r4f-gg25-rmg5",
  "modified" : "2026-07-17T18:35:57Z",
  "published" : "2026-07-17T18:35:57Z",
  "aliases" : [ "CVE-2026-54503" ],
  "summary" : "plone.app.textfield: Stored XSS by spoofing mime type ",
  "details" : "### Impact\n\nA stored XSS affecting RichText fields. RichTextValue.output returns the raw, unsanitized stored value whenever the stored mimeType equals the outputMimeType. Because the safe-HTML output type (`text/x-html-safe`) is the type that signifies \"already sanitized\", any value whose stored mimeType equals it bypasses the safe_html transform entirely on render. The transform itself is sound — it correctly strips `on*` event-handler attributes and `javascript:/data:` URIs; the defect is that it is never invoked for these values. The unsanitized value is then emitted via `tal:content=\"structure ...\"`, which performs no escaping, so the payload executes in the viewer's browser. \n\nThis can be a problem when a RichText field is wrongly defined in code with a `mimeType` and `outputMimeType` that are the same, or when the REST API is used to the same effect.\n\n### Patches\nThe problem has been patched:\n\n* For Plone 6.0, upgrade `plone.app.textfield` to 2.0.2.\n* For Plone 6.1, upgrade `plone.app.textfield` to 3.0.2.\n* For Plone 6.2, upgrade `plone.app.textfield` to 4.0.1.\n\n### Workarounds\nThere is no known workaround.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "plone.app.textfield"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "plone.app.textfield"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "plone.app.textfield"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.1"
      } ]
    } ],
    "versions" : [ "4.0.0" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/plone/plone.app.textfield/security/advisories/GHSA-4r4f-gg25-rmg5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/plone/plone.app.textfield"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-80" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-17T18:35:57Z",
    "nvd_published_at" : null
  }
}