# CVE-2026-54503: plone.app.textfield: Stored XSS by spoofing mime type

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 26% of CVEs (2026-11-30)
- Published: 2026-07-17T18:35:57.000Z
- Modified: 2026-09-30T17:43:24.057Z
- Also known as: GHSA-4r4f-gg25-rmg5, PYSEC-2026-3497
- Weaknesses: CWE-80
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- plone plone.app.textfield: < 2.0.2; >= 3.0.0, < 3.0.2; >= 4.0.0, < 4.0.1
- plone-app-textfield (PyPI): before 2.0.2; from 3.0.0 before 3.0.2; from 4.0.0 before 4.0.1

## Every score

- GitHub_M: 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`
- GitHub: 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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/plone/plone.app.textfield/security/advisories/GHSA-4r4f-gg25-rmg5> (web)
- <https://github.com/plone/plone.app.textfield/commit/0da1aeec2406cf640977eb857a03e792d2c7cac2>
- <https://github.com/plone/plone.app.textfield/commit/467638e500d804c637031387a227a2b02d12a86f>
- <https://github.com/plone/plone.app.textfield/commit/781d517a38524087fe57525a94806684908f852f>
- <https://github.com/plone/plone.app.textfield> (package)
- <https://pypi.org/project/plone-app-textfield> (package)
- <https://github.com/advisories/GHSA-4r4f-gg25-rmg5> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54503> (advisory)

## Sources

- CVE List: [CVE-2026-54503](https://www.cve.org/CVERecord?id=CVE-2026-54503), CVE Terms of Use, modified 2026-09-15
- GitHub Advisory Database: [GHSA-4r4f-gg25-rmg5](https://github.com/advisories/GHSA-4r4f-gg25-rmg5), CC-BY-4.0, modified 2026-07-23
- NVD: [CVE-2026-54503](https://nvd.nist.gov/vuln/detail/CVE-2026-54503), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-3497](https://osv.dev/vulnerability/PYSEC-2026-3497), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-54503 · Whole record: https://cve.day/CVE-2026-54503.json · Rebuilt by cve.day 2026-11-25T22:59:38.593Z
