Articles · Security research

CVE-2026-121780: Unauthenticated Stored XSS in Flying Images <= 2.4.15

· Alpaslan Fatih Sözer, attorney at law, Denizli Bar Association

Advisory summary. Flying Images for WordPress (plugin slug nazy-load) versions <= 2.4.15 contained an unauthenticated Stored Cross-Site Scripting (XSS) vulnerability in its bundled HTML DOM parser, tracked as CVE-2026-121780 and fixed in version 2.4.16 (released 4 November 2026), with additional attribute-escaping hardening in version 2.4.17 (16 November 2026).

  • Product: Flying Images (WordPress plugin, slug nazy-load)
  • Affected / Patched: <= 2.4.15 / Fixed in 2.4.16 (further hardened in 2.4.17)
  • Classification: CWE-79 (Stored Cross-Site Scripting) · CVSS 3.1: 7.1 (High) (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L)
  • Credit: Alpaslan Fatih Sözer (reported via Patchstack Bug Bounty Program)

Flying Images buffers rendered front-end HTML pages and rewrites image tags through a bundled copy of simple_html_dom. While reviewing WordPress plugins that ship this parser in an isolated local lab in October 2026, I verified that version 2.4.15 remained vulnerable to attribute breakout via predictable parser placeholders and reported the finding through Patchstack.

Root cause

In html-rewrite.php, the plugin registered an output buffer on every non-admin request (ob_start("flying_images_rewrite_html")) and parsed the full page through str_get_html($html) before inspecting individual feature toggles. Inside lib/dom-parser.php, remove_noise() replaced protected blocks (<script>, CDATA, HTML comments, <style>, and <code>) with sequential placeholders using a fixed prefix:

// lib/dom-parser.php (2.4.15), remove_noise()
$key = '___noise___' . sprintf('% 5d', count($this->noise) + 1000);

During attribute parsing and node serialization, parse_attr() and makeup() restored matching placeholder strings directly into attribute values without context-aware quote escaping:

// lib/dom-parser.php (2.4.15), parse_attr()
$value = $this->restore_noise($value);

Because placeholder keys started at 1000 and followed the deterministic extraction order of the document, untrusted content could reference a stashed block from inside an HTML attribute. When the stashed block began with a quote character, unescaped restoration closed the original attribute delimiter and allowed new HTML attributes to be injected into the tag.

Trigger mechanism

WordPress permits benign markup such as <abbr title="..."> and <code> in visitor comments while stripping event handlers on save. If a comment placed a forged placeholder inside <abbr title> alongside a <code> element starting with a quote, the stored comment remained inert in the database and whenever Flying Images was disabled. On front-end rendering with version 2.4.15 active, however, the parser stashed the <code> body and restored it raw inside the title attribute:

<!-- stored comment in database (inert) -->
<abbr title="___noise___ 1041">...</abbr><code>" data-example="</code>

<!-- rewritten HTML output served by plugin 2.4.15 -->
<abbr title="" data-example="">...</abbr>

Counting the preceding script, CDATA, comment, and style blocks on the public post page yielded the exact placeholder index deterministically without server access. Substituting data-example with auto-triggering focus attributes caused JavaScript to execute on page load in unauthenticated visitor browsers without further user clicks.

Scope and impact boundaries

  • Preconditions: Default plugin settings were sufficient upon activation. Because HTML parsing ran before individual optimization flags were checked, the code path remained active even when CDN or lazy-loading toggles were disabled. Under WordPress default comment moderation, an attacker needed an address with a previously approved comment so subsequent comments published automatically.
  • Measured audience: Reproduction was verified end-to-end on unauthenticated visitor requests. Because the WordPress admin bar shifts block counts on authenticated views, this advisory does not claim administrator session hijacking.
  • Testing boundary: All verification took place exclusively on a local, offline WordPress lab installation.

Vendor fix (versions 2.4.16 and 2.4.17)

The vendor addressed the root cause in version 2.4.16 (4 November 2026) and added defense-in-depth attribute escaping in version 2.4.17 (16 November 2026):

// lib/dom-parser.php (2.4.16)
do {
    $this->noise_prefix = '___noise_' . bin2hex(random_bytes(16)) . '_';
} while (strpos($this->doc, $this->noise_prefix) !== false);

$key = $this->noise_prefix . count($this->noise) . '___';
  • Per-parse random prefix (2.4.16): Isolated the bundled parser under namespace FlyingImages\Html, replaced the fixed ___noise___ marker with a per-parse 128-bit random prefix verified absent from the document, resolved nested placeholders before storage, and rewrote restore_noise() using preg_replace_callback.
  • Escaping rewritten attributes (2.4.17): Tracked modified attributes in $modified_attributes and escaped them with htmlspecialchars(..., ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML5, 'UTF-8', false) during serialization.

Remediation

  • Update Flying Images to version 2.4.17 or later.
  • Purge all page, server, and CDN caches after updating so HTML rewritten by vulnerable versions is not served from cache.
  • Review stored comments for unexpected ___noise___ strings.

Disclosure timeline

  • 22 October 2026: Vulnerability verified locally and submitted to Patchstack; validated within approximately one hour and forwarded to the vendor.
  • 4 November 2026: Vendor released Flying Images 2.4.16 with randomized parser placeholders.
  • 7 November 2026: Patchstack published the vulnerability advisory.
  • 9 November 2026: CVE-2026-121780 published on cve.org.
  • 16 November 2026: Vendor released Flying Images 2.4.17 with additional attribute-escaping hardening.

For the full Turkish technical and legal analysis (including Turkish Data Protection Law KVKK Art. 12 considerations), see the Turkish write-up. For related WordPress advisories in this series, see CVE-2026-48201 (Fast Velocity Minify), CVE-2026-124410 (wpLingua), CVE-2026-111835 (Swish for WooCommerce) and CVE-2026-110900 (BookIt), or our overview of IT law, cybersecurity and KVKK compliance in Türkiye.

References

Published 23 November 2026 after coordinated disclosure and patch releases (2.4.16 and 2.4.17).