Cross-site Scripting (XSS)Weakness · CWE-79

CVE-2025-58674

MEDIUM · 5.9 CVSS v3.1 Published 2025-09-23
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
63/100
Remediation priority · Elevated
Remotely reachable

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 · unedited
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in WordPress allows Stored XSS. WordPress core security team is aware of the issue and working on a fix. This is low severity vulnerability that requires an attacker to have Author or higher user privileges to execute the attack vector.This issue affects WordPress: from 6.8 through 6.8.2, from 6.7 through 6.7.3, from 6.6 through 6.6.3, from 6.5 through 6.5.6, from 6.4 through 6.4.6, from 6.3 through 6.3.6, from 6.2 through 6.2.7, from 6.1 through 6.1.8, from 6.0 through 6.0.10, from 5.9 through 5.9.11, from 5.8 through 5.8.11, from 5.7 through 5.7.13, from 5.6 through 5.6.15, from 5.5 through 5.5.16, from 5.4 through 5.4.17, from 5.3 through 5.3.19, from 5.2 through 5.2.22, from 5.1 through 5.1.20, from 5.0 through 5.0.23, from 4.9 through 4.9.27, from 4.8 through 4.8.26, from 4.7 through 4.7.30.

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 · moderate confidence

This is a Stored Cross-Site Scripting (XSS) vulnerability in WordPress core where improper input validation allows users with Author-level privileges or higher to inject malicious JavaScript payloads that persist in the database and execute when other users view the affected content in the web page generation process.

MitigationUpdate to the latest WordPress version once the security patch is released; in the interim, strictly limit user role assignments to trusted individuals and consider deploying a web application firewall for additional protection.

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
High
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L

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 checks

Work through these to decide whether this CVE applies to you.

  1. Identify installed WordPress version
    Access the site via FTP or file manager and open wp-includes/version.php, or use admin dashboard under Dashboard > Updates, or query the database: SELECT option_value FROM wp_options WHERE option_name = 'wp_version';
    Affected if The installed version falls within the vulnerable range and has not yet received the security patch.
  2. Check for Author-level or higher user accounts
    Navigate to Users > All Users in WordPress admin, or query: SELECT user_login, user_email FROM wp_users WHERE ID IN (SELECT user_id FROM wp_usermeta WHERE meta_key = 'wp_capabilities' AND meta_value LIKE '%author%');
    Affected if Any account with Author, Editor, or Administrator role exists, as these roles can trigger the vulnerable code path.
  3. Inspect post content for suspicious script tags
    Query the wp_posts table for stored XSS patterns: SELECT ID, post_title, post_type FROM wp_posts WHERE post_content LIKE '%<script%' OR post_content LIKE '%onload=%' OR post_content LIKE '%javascript:%';
    Affected if Any post contains unsanitized script tags or event handlers that were injected and are now stored in the database.
  4. Review comment content for injected scripts
    Query wp_comments table: SELECT comment_ID, comment_author, comment_content FROM wp_comments WHERE comment_content LIKE '%<script%' OR comment_content LIKE '%onerror=%' OR comment_content LIKE '%javascript:%';
    Affected if Stored XSS payloads are present in comment fields awaiting execution when viewed.
  5. Check recent post revisions for malicious insertions
    Query wp_posts with post_type='revision': SELECT ID, post_title, post_content, post_modified FROM wp_posts WHERE post_type='revision' AND (post_content LIKE '%<script%' OR post_content LIKE '%on%=') ORDER BY post_modified DESC LIMIT 20;
    Affected if Recent revisions contain script tags or event handlers that were saved by an Author+ user.

Your environment is affected if you are running a WordPress version within the vulnerable range and have any user accounts with Author-level or higher privileges, as the XSS can be injected through standard content creation and persists in the database.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Update to the latest WordPress version once the security patch is released; in the interim, strictly limit user role assignments to trusted individuals and consider deploying a web application firewall for additional protection.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation1.0 h
  • Testing3.0 h
  • Review / QA1.0 h
7.0 hours of engineering $1,210
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,936.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-58674 — 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-58674 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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