CVE-2025-5082
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe WP Attachments WordPress plugin is vulnerable to reflected Cross-Site Scripting (XSS) via the 'attachment_id' parameter in versions up to 5.0.12. The plugin fails to properly sanitize the input and escape the output, allowing unauthenticated attackers to inject arbitrary JavaScript through a crafted URL that tricks users into clicking a malicious link.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Locate the WP Attachments plugin installationCheck the /wp-content/plugins/wp-attachments/ directory for the main plugin file (usually wp-attachments.php) and read its header to find the Version field, or query the WordPress database: SELECT option_value FROM wp_options WHERE option_name = 'wp_attachments_version' OR SELECT plugin_version FROM your_plugins_table;Affected if The plugin is installed and the version is 5.0.12 or lower (anything below 5.0.13)
-
Confirm the plugin is activeQuery the WordPress database: SELECT active FROM wp_options WHERE option_name = 'active_plugins' AND option_value LIKE '%wp-attachments%'; or check via WordPress admin dashboard under Plugins > Installed PluginsAffected if The WP Attachments plugin is active in the WordPress installation
-
Test for the vulnerable parameter exposureWith the plugin active, attempt to access a page that processes the attachment_id parameter (typically a page that displays or processes attachments), for example: https://yoursite.com/?attachment_id=<script>alert(1)</script> or the specific URL endpoint used by the plugin to handle attachmentsAffected if The page reflects the attachment_id parameter value back into the HTML output without sanitization (the script tag executes or appears in the page source unescaped)
-
Inspect server-side handling of attachment_idReview the plugin source code in wp-attachments.php and related files for the $_GET['attachment_id'] or $_REQUEST['attachment_id'] usage; verify if sanitize_text_field, esc_html, esc_attr, or similar escaping functions are applied before outputAffected if The code does not sanitize the attachment_id input with functions like sanitize_text_field or escape the output with esc_html/esc_attr before reflecting it in the response
You are affected if the WP Attachments plugin versions 5.0.12 or below are installed AND active on your WordPress site AND the attachment_id parameter is reflected in the page output without proper sanitization and escaping, allowing script injection via crafted URLs.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate the WP Attachments plugin to version 5.0.13 or later which contains the patch. If immediate updating is not feasible, implement a WAF rule to block requests containing malicious patterns in the 'attachment_id' parameter.
WP Attachments version 5.0.13 or latest available version
- Navigate to the WordPress admin dashboard
- Go to Plugins > Installed Plugins
- Find the 'WP Attachments' plugin
- Check if the current version is 5.0.12 or lower
- If vulnerable, click 'Update Now' to update to the latest version, or manually download the latest version from wordpress.org and upload via Plugins > Add New > Upload Plugin
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation1.0 h
- Implementation2.0 h
- Testing1.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,424.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-5082 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-5082 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data