CVE-2021-3313
Python vulnerability analysis and mitigation

Overview

CVE-2021-3313 is a stored Cross-Site Scripting (XSS) vulnerability affecting Plone CMS versions up to 5.2.4. The vulnerability was discovered in January 2021 and publicly disclosed in May 2021. The issue exists in the user fullname property and the file upload functionality, where user input data is not properly encoded when being echoed back to the user (Compass Advisory, NVD).

Technical details

The vulnerability allows malicious data to be interpreted as executable code by the browser when a victim opens a vulnerable page containing an XSS payload. Two main attack vectors were identified: through the user fullname field and through SVG file uploads. The CVSS v3.1 base score is 5.4 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N. The vulnerability is classified as CWE-79: Improper Neutralization of Input During Web Page Generation (NVD, Compass Advisory).

Impact

Successful exploitation of this vulnerability could lead to privilege escalation by stealing session cookies of higher privileged users who can deploy Plone-PythonScripts, stealing or manipulation of user data, and potential redirection of users to phishing pages (Compass Advisory).

Mitigation and workarounds

The vulnerability was fixed in Plone 5.2.4 with hotfix 20210518 and Plone 5.2.5. The fix includes proper encoding of user input to prevent JavaScript execution in the browser context. Recommended mitigations include implementing HTML encoding for body content, enforcing file downloads using Content-Disposition: attachment header, and implementing a Content-Security Policy without allowing unsafe-inline scripts (Compass Advisory, Plone Security).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66423HIGH7.1
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-66454MEDIUM6.5
  • PythonPython
  • arcade-mcp-server
NoYesDec 02, 2025
CVE-2025-66424MEDIUM6.5
  • PythonPython
  • trytond
NoYesNov 30, 2025
CVE-2025-66422MEDIUM4.3
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-65858LOW3.5
  • PythonPython
  • calibreweb
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management