CVE-2026-54503
plone.app.textfield: Stored XSS by spoofing mime type
plone.app.textfield provides a zope.schema-style field type called RichText for storing a value with a related MIME type. Prior to 2.0.2, 3.0.2, and 4.0.1, depending on the release line, RichTextValue.output returns an unsanitized stored RichText value when mimeType equals outputMimeType, including values that claim the text/x-html-safe output type. This equality shortcut bypasses the safe_html transform even though the transform itself correctly removes event-handler attributes and unsafe URI schemes. Equal types can result from a RichText field configured with the same mimeType and outputMimeType or from REST API input that supplies text/x-html-safe as its content type. The raw stored value is then emitted through tal:content=structure without escaping, allowing a user who can set a RichText field to store JavaScript that executes in a viewer's browser. This issue is fixed in versions 2.0.2, 3.0.2, and 4.0.1.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
4.3
plone.app.textfield: Stored XSS by spoofing mime type
plone.app.textfield provides a zope.schema-style field type called RichText for storing a value with a related MIME type. Prior to 2.0.2, 3.0.2, and 4.0.1, depending on the release line, RichTextValue.output returns an unsanitized stored RichText value when mimeType equals outputMimeType, including values that claim the text/x-html-safe output type. This equality shortcut bypasses the safe_html transform even though the transform itself correctly removes event-handler attributes and unsafe URI schemes. Equal types can result from a RichText field configured with the same mimeType and outputMimeType or from REST API input that supplies text/x-html-safe as its content type. The raw stored value is then emitted through tal:content=structure without escaping, allowing a user who can set a RichText field to store JavaScript that executes in a viewer's browser. This issue is fixed in versions 2.0.2, 3.0.2, and 4.0.1.
- Record
CVE-2026-54503- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-80
- Updated
- 2026-11-02
EUVDEUVD-2026-78836
4.3
plone.app.textfield provides a zope.schema-style field type called RichText for storing a value with a related MIME type. Prior to 2.0.2, 3.0.2, and 4.0.1, depending on the release line, RichTextValue.output returns an unsanitized stored RichText value when mimeType equals outputMimeType, including values that claim the text/x-html-safe output type. This equality shortcut bypasses the safe_html transform even though the transform itself correctly removes event-handler attributes and unsafe URI schemes. Equal types can result from a RichText field configured with the same mimeType and outputMimeType or from REST API input that supplies text/x-html-safe as its content type. The raw stored value is then emitted through tal:content=structure without escaping, allowing a user who can set a RichText field to store JavaScript that executes in a viewer's browser. This issue is fixed in versions 2.0.2, 3.0.2, and 4.0.1.
- Record
EUVD-2026-78836- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-4r4f-gg25-rmg5
4.3
plone.app.textfield: Stored XSS by spoofing mime type
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.textfieldto 2.0.2. - For Plone 6.1, upgrade
plone.app.textfieldto 3.0.2. - For Plone 6.2, upgrade
plone.app.textfieldto 4.0.1.
Workarounds
There is no known workaround.
- Record
GHSA-4r4f-gg25-rmg5- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-80
- Updated
- 2026-11-02
NVD
4.3
plone.app.textfield provides a zope.schema-style field type called RichText for storing a value with a related MIME type. Prior to 2.0.2, 3.0.2, and 4.0.1, depending on the release line, RichTextValue.output returns an unsanitized stored RichText value when mimeType equals outputMimeType, including values that claim the text/x-html-safe output type. This equality shortcut bypasses the safe_html transform even though the transform itself correctly removes event-handler attributes and unsafe URI schemes. Equal types can result from a RichText field configured with the same mimeType and outputMimeType or from REST API input that supplies text/x-html-safe as its content type. The raw stored value is then emitted through tal:content=structure without escaping, allowing a user who can set a RichText field to store JavaScript that executes in a viewer's browser. This issue is fixed in versions 2.0.2, 3.0.2, and 4.0.1.
- Record
CVE-2026-54503- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-80
- Updated
- 2026-11-02
OSV
4.3
plone.app.textfield: Stored XSS by spoofing mime type
plone.app.textfield provides a zope.schema-style field type called RichText for storing a value with a related MIME type. Prior to 2.0.2, 3.0.2, and 4.0.1, depending on the release line, RichTextValue.output returns an unsanitized stored RichText value when mimeType equals outputMimeType, including values that claim the text/x-html-safe output type. This equality shortcut bypasses the safe_html transform even though the transform itself correctly removes event-handler attributes and unsafe URI schemes. Equal types can result from a RichText field configured with the same mimeType and outputMimeType or from REST API input that supplies text/x-html-safe as its content type. The raw stored value is then emitted through tal:content=structure without escaping, allowing a user who can set a RichText field to store JavaScript that executes in a viewer's browser. This issue is fixed in versions 2.0.2, 3.0.2, and 4.0.1.
- Record
CVE-2026-54503- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-80
- Updated
- 2026-11-02
OSVGHSA-4r4f-gg25-rmg5
4.3
plone.app.textfield: Stored XSS by spoofing mime type
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.textfieldto 2.0.2. - For Plone 6.1, upgrade
plone.app.textfieldto 3.0.2. - For Plone 6.2, upgrade
plone.app.textfieldto 4.0.1.
Workarounds
There is no known workaround.
- Record
GHSA-4r4f-gg25-rmg5- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-80
- Updated
- 2026-11-02
OSVPYSEC-2026-3497
4.3
plone.app.textfield: Stored XSS by spoofing mime type
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.textfieldto 2.0.2. - For Plone 6.1, upgrade
plone.app.textfieldto 3.0.2. - For Plone 6.2, upgrade
plone.app.textfieldto 4.0.1.
Workarounds
There is no known workaround.
- Record
PYSEC-2026-3497- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
plone-app-textfieldPyPI |
before 2.0.2 | 2.0.2 |
plone-app-textfieldPyPI |
3.0.0 up to 3.0.2 | 3.0.2 |
plone-app-textfieldPyPI |
4.0.0 to 4.0.0 | 4.0.1 |
plone-app-textfieldPyPI |
before 2.0.2, plus listed versions 1.01.0.11.0.21.0b11.0b2 Show 29 moreShow less1.0b31.0b41.0b51.0b61.0b71.11.21.2.11.2.101.2.111.2.121.2.21.2.31.2.41.2.51.2.61.2.71.2.81.2.91.3.01.3.11.3.21.3.31.3.41.3.51.3.61.3.72.0.02.0.1 |
2.0.2 |
plone-app-textfieldPyPI |
3.0.0 up to 3.0.2, plus listed versions 3.0.1 |
3.0.2 |
plone-app-textfieldPyPI |
4.0.0 up to 4.0.1 | 4.0.1 |
plone-app-textfieldPyPI |
before 2.0.2, 3.0.0 up to 3.0.2, 4.0.0 up to 4.0.1, plus listed versions 1.01.0.11.0.21.0b11.0b2 Show 30 moreShow less1.0b31.0b41.0b51.0b61.0b71.11.21.2.11.2.101.2.111.2.121.2.21.2.31.2.41.2.51.2.61.2.71.2.81.2.91.3.01.3.11.3.21.3.31.3.41.3.51.3.61.3.72.0.02.0.13.0.1 |
2.0.23.0.24.0.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-54503 is a medium vulnerability (CVSS 4.3) in Plone Plone.app.textfield, published July 17, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.40%, the 34th percentile. Fixed in plone-app-textfield 2.0.2.
References
github.com/plone/plone.app.textfield/security/advisories/GHSA-4r4f-gg25-rmg5
github.com/plone/plone.app.textfield/commit/0da1aeec2406cf640977eb857a03e792d2c7cac2
github.com/plone/plone.app.textfield/commit/467638e500d804c637031387a227a2b02d12a86f
github.com/plone/plone.app.textfield/commit/781d517a38524087fe57525a94806684908f852f
github.com/advisories/GHSA-4r4f-gg25-rmg5
github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54503.json
nvd.nist.gov/vuln/detail/CVE-2026-54503
github.com/plone/plone.app.textfield
pypi.org/project/plone-app-textfield