Articles · Security research

CVE-2026-124410: Unauthenticated Stored XSS in wpLingua <= 3.1.1

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

Advisory summary. Translate and boost SEO - Automatic AI translation - wpLingua for WordPress (plugin slug wplingua) versions <= 3.1.1 contained an unauthenticated Stored Cross-Site Scripting (XSS) vulnerability in its bundled HTML DOM parser, tracked as CVE-2026-124410 and fixed in version 3.2.0 (released 9 November 2026).

  • Product: Translate and boost SEO - Automatic AI translation - wpLingua (WordPress plugin, slug wplingua)
  • Affected / Patched: <= 3.1.1 / Fixed in 3.2.0
  • 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)

wpLingua translates WordPress pages on the fly by capturing the full HTML response for translated URLs, parsing it with a bundled fork of simple_html_dom, substituting translated strings, and re-serializing the page. While auditing plugins that bundle this parser family in an isolated local test environment in November 2026, I verified that version 3.1.1 allowed unauthenticated comments to break out of HTML attributes on translated pages and reported the issue through Patchstack.

Root cause

In inc/translator/html.php, translated page responses were passed through the bundled parser in inc/lib/simple-html-dom.php. Before parsing nodes, remove_noise() replaced protected blocks (<script>, CDATA, HTML comments, <style>, and <code>) with sequential placeholders using an unsalted fixed prefix:

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

When attributes were parsed and serialized back into HTML, parse_attr() and makeup() restored placeholder strings directly into attribute values without escaping quote delimiters:

// inc/lib/simple-html-dom.php (3.1.1), parse_attr()
$value = $this->restore_noise($value);

Two consequences followed. First, any attacker who could supply both an HTML attribute and a subsequent <code> block could forge the sequential placeholder key and inject arbitrary HTML attributes when the stashed block was restored raw inside the attribute. Second, an unknown ___noise___ key caused the 3.1.1 restore_noise() loop to replace the token with an error string that still contained ___noise___, triggering an infinite loop until PHP hit its execution timeout (HTTP 500) on that translated page.

Trigger mechanism

WordPress permits benign markup such as <a title="..."> and <code> inside standard visitor comments and strips unsafe attributes on save. When a comment placed the computed placeholder index inside <a title> alongside a <code> element starting with a quote, the stored comment remained harmless in the database and on the original untranslated page. When a visitor requested the translated URL, however, wpLingua stashed the <code> content and restored it unescaped inside the title attribute:

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

<!-- rewritten HTML output on translated page (3.1.1) -->
<a title="" data-example="">...</a>

The target index could be calculated deterministically by counting the preceding noise blocks on the translated page. In local browser verification (Chromium), pairing an injected attribute with the plugin's own enqueued CSS keyframe animation (assets/css/front.css) and focus attributes executed JavaScript on page load without clicks or keystrokes.

Scope and impact boundaries

  • Affected audience: Only unauthenticated visitors viewing the translated page were affected. Because the WordPress admin bar adds extra blocks for logged-in users, the placeholder count shifted for authenticated sessions (in the test lab: 1073 for unauthenticated visitors, 1078 for subscribers, and 1084 for administrators). A payload targeting unauthenticated visitors did not trigger for logged-in users, and targeting an administrator index caused an undefined-key timeout (HTTP 500) for unauthenticated visitors. Accordingly, this advisory does not claim administrator session hijacking.
  • Preconditions: Active translation requires completing initial plugin registration and opening the settings page once (where wpLingua writes the target language list automatically). Under WordPress default comment moderation, an attacker needed a previously approved commenter address so subsequent comments published directly.
  • Testing boundary: All reproduction and browser verification took place solely on a local, offline WordPress test environment.

Vendor fix (version 3.2.0)

In version 3.2.0 (released 9 November 2026), the vendor replaced the bundled parser (inc/lib/simple-html-dom/simple-html-dom.php) with an updated fork incorporating TranslatePress 3.3.9 security fixes:

// inc/lib/simple-html-dom/simple-html-dom.php (3.2.0)
protected function generate_noise_salt() {
    return bin2hex( random_bytes( 16 ) );
}

$key = '___noise___' . $this->noise_salt . sprintf( '% 5d', count( $this->noise ) + 1000 );
  • Per-parse 128-bit random salt: Every parse run generates a secret random salt embedded into placeholder keys so user input cannot forge valid markers.
  • Full salted matching and loop cap: restore_noise() matches only the full salted prefix, leaves bare ___noise___ strings untouched, and enforces a hard iteration cap, closing both the stored XSS vector and the unknown-key infinite loop.

Remediation

  • Update wpLingua to version 3.2.0 or later.
  • Clear page, plugin, and CDN caches after updating so translated pages generated by version 3.1.1 are not served from cache.
  • Inspect existing comments for unexpected ___noise___ strings.

Disclosure timeline

  • 5 November 2026: Vulnerability verified locally (including headless browser execution) and reported to Patchstack.
  • 6 November 2026: Patchstack validated the report and notified the vendor.
  • 9 November 2026: Vendor released wpLingua 3.2.0 with salted parser placeholders and infinite-loop protection.
  • 11 November 2026: Patchstack published the vulnerability advisory.
  • 13 November 2026: CVE-2026-124410 published on cve.org.

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-121780 (Flying Images), 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 release (3.2.0).