CVE-2025-6997
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 ThemeREX Addons plugin for WordPress is vulnerable to Stored Cross-Site Scripting via SVG File uploads in all versions up to, and including, 2.35.1.1 due to insufficient input sanitization and output escaping. The plugin’s SVG rendering routine calls the trx_addons_get_svg_from_file() function on an unvalidated 'svg' parameter supplied via the shortcode or Elementor widget settings, then outputs it via the trx_addons_show_layout() function. Because there is no check on the URL’s origin, scheme, or the SVG content itself, authenticated attackers, with Contributor-level access and above, can supply a remote SVG and inject arbitrary web scripts in pages that will execute whenever a user accesses the SVG file.
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 ThemeREX Addons WordPress plugin has a stored XSS vulnerability in its SVG rendering. The trx_addons_get_svg_from_file() function processes an unvalidated 'svg' parameter from shortcodes or Elementor widgets without checking URL origin, scheme, or SVG content, and trx_addons_show_layout() outputs it without proper escaping, allowing authenticated Contributor+ users to inject malicious scripts via SVG files.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 2.35.2.2CVSS 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
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/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.
-
Confirm ThemeREX Addons plugin is installedNavigate to WordPress admin > Plugins and look for 'ThemeREX Addons' in the installed plugins list, or query the wp_plugins database table for the plugin slug containing 'trx-addons'Affected if The plugin is present on the WordPress site
-
Identify the installed plugin versionIn WordPress admin > Plugins, click on the ThemeREX Addons plugin to view its version number, or inspect the plugin main file header for the 'Version' tagAffected if The installed version is earlier than 2.35.2.2 (e.g., 2.35.1, 2.30.5, etc.)
-
Determine if SVG shortcodes or widgets are in useSearch WordPress post/content database for occurrences of the 'svg' parameter in shortcodes (e.g., [trx_addons_sc_skills svg="..."] or similar) or check Elementor pages for widgets that include SVG file referencesAffected if SVG-related shortcodes or Elementor widgets containing a 'svg' parameter are actively used on the site
-
Inspect SVG file handling configurationReview the theme or plugin settings pages in WordPress admin for any SVG upload or display functionality that may be enabled, and examine the trx_addons_get_svg_from_file() function behavior if accessible in the codebaseAffected if SVG file rendering from external or uploaded sources is enabled and the function processes the 'svg' parameter without validation
-
Check for suspicious stored content in posts/pagesQuery the wp_posts database table for any posts containing '<script', 'javascript:', or SVG-related markup in the post_content field, particularly in fields corresponding to the 'svg' parameterAffected if Malicious script tags or event handlers are found stored in post content
A site is affected if it runs ThemeREX Addons version before 2.35.2.2 AND uses the SVG rendering feature via shortcodes or Elementor widgets with an unvalidated 'svg' parameter.
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 · scoped2.35.2.2
Update to version 2.35.2 or later; alternatively, implement proper input validation for the svg parameter including URL origin/scheme validation and SVG content sanitization before rendering.
2.35.2.2
- Backup your WordPress site before making any changes
- Navigate to Plugins > Installed Plugins in the WordPress admin dashboard
- Find ThemeREX Addons in the plugin list
- If an update is available, click 'Update Now' to upgrade to version 2.35.2.2
- Alternatively, manually upload ThemeREX Addons version 2.35.2.2 via Plugins > Add New > Upload Plugin
- Verify the plugin version shows 2.35.2.2 after updating
- Test the SVG rendering functionality to ensure the fix does not break legitimate SVG usage
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation5.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,696.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-6997 — 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-6997 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