# CVE-2017-9516: Craft CMS XSS Vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.0, NVD) `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 2.80% (percentile 87, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** EDB-42143, GHSA-6pvw-hh48-jx7p
- **Published:** 2017-06-08T00:00:00.000Z
- **Modified:** 2026-06-17T01:28:16.933Z

## Who should check

- Projects that depend on Packagist package craftcms/cms (\< 2.6.2982)
- Anyone running n/a (versions: see the vendor advisory)

## Description

Craft CMS before 2.6.2982 allows for a potential XSS attack vector by uploading a malicious SVG file.

## Affected and fixed versions

- Packagist `craftcms/cms`: affected \< 2.6.2982; fixed 2.6.2982 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade craftcms/cms to 2.6.2982 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2017-9516. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2017-9516.md
Affected: craftcms/cms < 2.6.2982
Fixed in: 2.6.2982

Steps:
1. Search this machine and project for craftcms/cms (Packagist), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2017-9516 being exploited?

There is no confirmed exploitation: CVE-2017-9516 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.80% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2017-9516?

Medium: CVSS 5.4 (v3.0, scored by NVD). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2017-9516?

craftcms/cms \< 2.6.2982.

### Is there a fix for CVE-2017-9516?

Yes. Fixed in 2.6.2982. Upgrade craftcms/cms to 2.6.2982 or later.

### How do I check if I'm affected by CVE-2017-9516?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://craftcms.com/changelog#2-6-2982>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2017-9516>
- exploit: <https://packetstormsecurity.com/files/142851/Craft-CMS-2.6-Cross-Site-Scripting-File-Upload.html>
- exploit: <https://www.exploit-db.com/exploits/42143/>
- exploit: <https://www.exploit-db.com/exploits/42143>
- article: <https://twitter.com/CraftCMS/status/872599894912937984>
- other: <https://github.com/craftcms/cms>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2017-9516>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6pvw-hh48-jx7p> (license: <https://creativecommons.org/licenses/by/4.0/>)
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/42143>

HTML: <https://flawdb.com/CVE-2017-9516> · JSON: <https://flawdb.com/api/v1/entries/CVE-2017-9516>
