CVE-2016-6519: Openstack Manila Persistent XSS in Metadata field
5.4
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.50802%
CWE
Published
5/13/2022
Updated
5/14/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
manila-ui | pip | < 2.5.1 | 2.5.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper input sanitization in the metadata_to_str function. The original code used mark_safe() on unescaped user-controlled metadata values (as shown in pre-patch code and referenced in the bug report). The patched version introduced HTML escaping via a custom html_escape() function before passing the data to mark_safe(), confirming the absence of proper escaping was the root cause. Commit diffs (e.g., fca19a1) explicitly modify this function to add escaping, and the bug report directly attributes the vulnerability to unsafe handling of metadata in this context.