Skip to main content
Vulnerability Database/CVE-2025-12672

CVE-2025-12672: Flickr Show WordPress Plugin XSS Vulnerability

CVE-2025-12672 is a stored XSS vulnerability in the Flickr Show WordPress plugin that allows authenticated attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-12672 Overview

CVE-2025-12672 is a Stored Cross-Site Scripting (XSS) vulnerability in the Flickr Show plugin for WordPress. The flaw affects all versions up to and including 1.5. The vulnerability resides in the div_height parameter of the flickrshow shortcode. Insufficient input sanitization and output escaping allow authenticated attackers with Contributor-level access or higher to inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any user who views an affected page. The weakness is classified under CWE-79: Improper Neutralization of Input During Web Page Generation.

Critical Impact

Authenticated contributors can inject persistent JavaScript that executes in administrator browsers, enabling session theft, account takeover, and arbitrary administrative actions.

Affected Products

  • WordPress Flickr Show plugin (wp-flickrshow) versions up to and including 1.5
  • WordPress sites that allow Contributor-level or higher user registration
  • Any WordPress installation rendering the flickrshow shortcode in published content

Discovery Timeline

  • 2025-11-11 - CVE-2025-12672 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-12672

Vulnerability Analysis

The Flickr Show plugin exposes a flickrshow shortcode that accepts user-controlled attributes, including div_height. The plugin consumes this attribute and renders it directly into HTML output. The plugin does not sanitize the attribute value nor escape it when writing to the page.

An authenticated attacker with Contributor privileges can submit a post containing the shortcode with a malicious div_height value. When the post is viewed, the injected payload executes in the visitor's browser under the site's origin. Because the payload is persisted in the database, every visitor who loads the affected page triggers the script.

The scope change in the attack reflects that script execution in an administrator session can affect site-wide configuration beyond the attacker's own privilege level. Successful exploitation can lead to session hijacking, forced administrative actions, credential harvesting, or injection of further backdoors.

Root Cause

The root cause is missing input sanitization and missing output escaping around the div_height shortcode attribute in flickrshow.php. The plugin treats the attribute as safe HTML numeric input but does not enforce type or character restrictions. See the plugin source at line 230 for the vulnerable code path.

Attack Vector

Exploitation requires an authenticated account with Contributor-level permissions or higher. The attacker creates or edits a post containing the flickrshow shortcode and supplies a div_height value that breaks out of the surrounding HTML attribute context to inject a <script> block or event handler. When an editor, administrator, or site visitor loads the page, the browser parses and executes the attacker-controlled JavaScript in the context of the WordPress site.

Detection Methods for CVE-2025-12672

Indicators of Compromise

  • Posts or pages containing flickrshow shortcodes with unusual div_height values that include quotes, angle brackets, or script fragments.
  • Database rows in wp_posts where post_content contains [flickrshow paired with on event handlers or <script substrings.
  • Unexpected outbound requests from administrator browsers to external hosts shortly after loading affected pages.
  • Creation of new administrator accounts or modification of plugin settings following page views by privileged users.

Detection Strategies

  • Query the WordPress database for flickrshow shortcode usage and inspect every div_height value for non-numeric characters.
  • Review activity logs for Contributor-level accounts that recently created or edited posts containing the plugin's shortcode.
  • Deploy a web application firewall rule that inspects post submissions for shortcode attributes containing script-like syntax.
  • Correlate anomalous administrative actions with recent page views of content containing the flickrshow shortcode.

Monitoring Recommendations

  • Enable WordPress audit logging to capture post edits, user role changes, and plugin configuration changes.
  • Alert on new user registrations elevated to Contributor or higher without an approved workflow.
  • Monitor outbound HTTP requests from admin workstations for connections to unknown domains referenced in page content.
  • Track plugin version inventory across WordPress fleets and flag installations of wp-flickrshow at version 1.5 or lower.

How to Mitigate CVE-2025-12672

Immediate Actions Required

  • Deactivate and remove the Flickr Show plugin until an official patched release is confirmed via the WordPress plugin page.
  • Audit all posts and pages that reference the flickrshow shortcode and sanitize or remove suspicious div_height values.
  • Review Contributor and Author accounts; disable or revoke accounts that are not strictly required.
  • Rotate administrator credentials and invalidate active sessions if exploitation is suspected.

Patch Information

At the time of publication, no vendor-fixed version beyond 1.5 is referenced in the Wordfence advisory. Monitor the WordPress plugin repository for an updated release and apply it as soon as it becomes available. If no patch is published, plan for permanent removal of the plugin.

Workarounds

  • Uninstall the Flickr Show plugin and replace its functionality with a maintained alternative.
  • Restrict post-authoring privileges so that only trusted editors can publish content containing shortcodes.
  • Deploy a web application firewall ruleset that blocks shortcode attributes containing <, >, ", or javascript: substrings.
  • Enforce a strict Content Security Policy (CSP) that disallows inline script execution to limit XSS impact.
bash
# Identify affected content in the WordPress database
wp db query "SELECT ID, post_title FROM wp_posts \
  WHERE post_content LIKE '%[flickrshow%' \
  AND post_content REGEXP 'div_height=\"[^\"]*[<>\"\\\\]';"

# Deactivate and remove the vulnerable plugin
wp plugin deactivate wp-flickrshow
wp plugin uninstall wp-flickrshow

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.