Plugins · wp-attachments · data as of 2026-11-04
Is WP Attachments safe? Known vulnerabilities and latest version
- Latest version
- 6.1
- Last updated
- 2026-10-05
- Active installs
- 3,000+
- Known issues on record
- 5
- Unpatched in latest
- 0
- Tested up to WP
- 7.2 · PHP 7.4+
Attach files to any post or page and let WP Attachments list them for you, with icons, file sizes and a download counter. — by Marco Milesi
What to do
- Update to the latest version (6.1). Anything older than 5.2.1 has at least one known issue listed below. Dashboard → Updates, or Plugins → “update now”.
- If you cannot update right away, deactivate it until you can.
- Turn on auto-updates for it: Plugins → “Enable auto-updates” on its row.
- If you ran a vulnerable version and something looks off (spam pages, strange admins, redirects), run the free scan.
With WP-CLI: wp plugin get wp-attachments --field=version shows what you run; wp plugin update wp-attachments updates it.
Check your version
Known vulnerabilities
5 on record, newest first. “Affected” is the version range the source gives; “fixed in” is the version the source names, or (marked *) the first wordpress.org release after the last affected version.
medium 5.4 CVE-2025-62888 · published 2025-12-31
Missing authorization check in WP Attachments (5.2 and older)
- Affected
- 5.2 and older
- Fixed in
- 5.2.1
- Access needed (per CVSS)
- Needs a low-level account (e.g. subscriber)
- Range from
- CVE record (the advisory publisher) · score by Patchstack
Details from the advisory
Missing Authorization vulnerability in Marco Milesi WP Attachments wp-attachments allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects WP Attachments: from n/a through <= 5.2.
medium 6.1 CVE-2025-5082 · published 2025-05-28
Reflected cross-site scripting (XSS) in WP Attachments (5.0.12 and older)
- Affected
- 5.0.12 and older
- Fixed in
- 5.1 *
- Access needed (per CVSS)
- No login needed; someone on the site has to click a link or open a page
- Range from
- CVE record (the advisory publisher) · score by Wordfence
Details from the advisory
The WP Attachments plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the ‘attachment_id’ parameter in all versions up to, and including, 5.0.12 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.
NVD CVE-2025-5082Wordfence advisoryCode change (fix)wordpress.orgPlugin source
high 8.8 CVE-2023-45651 · published 2023-10-16
Cross-site request forgery (CSRF) in WP Attachments (5.0.11 and older)
- Affected
- 5.0.11 and older
- Fixed in
- 5.0.12
- Access needed (per CVSS)
- No login needed; someone on the site has to click a link or open a page
- Range from
- CVE record (the advisory publisher) · score by NVD
Details from the advisory
Cross-Site Request Forgery (CSRF) vulnerability in Marco Milesi WP Attachments allows Cross Site Request Forgery.This issue affects WP Attachments: from n/a through 5.0.11.
medium 4.8 CVE-2022-4330 · published 2023-01-16
Stored cross-site scripting (XSS) in WP Attachments (older than 5.0.6)
- Affected
- older than 5.0.6
- Fixed in
- 5.0.6
- Access needed (per CVSS)
- Needs an admin-level account; someone on the site has to click a link or open a page
- Range from
- CVE record (the advisory publisher) · score by NVD
Details from the advisory
The WP Attachments WordPress plugin before 5.0.6 does not sanitise and escape some of its settings, which could allow high privilege users such as admin to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed (for example in multisite setup).
medium 4.8 CVE-2022-3469 · published 2022-11-14
Stored cross-site scripting (XSS) in WP Attachments (older than 5.0.5)
- Affected
- older than 5.0.5
- Fixed in
- 5.0.5
- Access needed (per CVSS)
- Needs an admin-level account; someone on the site has to click a link or open a page
- Range from
- NVD analysis · score by NVD
Details from the advisory
The WP Attachments WordPress plugin before 5.0.5 does not sanitize and escapes some of its settings, which could allow high-privilege users such as admin to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed (for example, in multisite setup).
Recent activity
- 2026-10-05 — latest release on wordpress.org (6.1).
- 2025-12-31 — Missing authorization check disclosed (CVE-2025-62888), fixed in 5.2.1.
- 2025-05-28 — Reflected cross-site scripting (XSS) disclosed (CVE-2025-5082), fixed in 5.1.
- 2023-10-16 — Cross-site request forgery (CSRF) disclosed (CVE-2023-45651), fixed in 5.0.12.
Get an email when WP Attachments has a new vulnerability
Free. We check the CVE feeds every day and email you only when a new issue for WP Attachments (wp-attachments) is published or a fix ships. Unsubscribe in one click.
Browse vulnerabilities
- Published this week
- Unpatched in the latest version
- By type of vulnerability
- Plugins by Marco Milesi (4 tracked)
Types found in this plugin: Cross-site scripting (XSS) (3) · Missing authorization (1) · Cross-site request forgery (CSRF) (1)
Where this data comes from
- Version, last update, installs: wordpress.org/plugins/wp-attachments (Plugins API), fetched 2026-11-04.
- Vulnerabilities: NIST National Vulnerability Database (NVD), checked 2026-11-04. This product uses data from the NVD API but is not endorsed or certified by the NVD.
- Each record links to its CVE page and to the original advisory (Wordfence, Patchstack or WPScan) where there is one. We only list a CVE here when its references or its advisory name this exact plugin, so a few real issues may be missing; none should be about a different plugin. Spot an error? Email Daniel.
Badge for your site or docs (states facts with a date, not a verdict):
<a href="https://laskyr.com/plugins/wp-attachments"><img src="https://laskyr.com/plugins/wp-attachments/badge.svg" alt="WP Attachments vulnerability status"></a>