AI, Development & Tech News

Translation plugin Weglot: Security vulnerability with open comment function

261130 weglot security vulnerability update wordpress featured image
Skip to table of contents
Contents 5 sections
  1. Which websites can an attack affect?
  2. Is the security update from October enough?
  3. Why do some addresses change with the update?
  4. What this means for your website
  5. Sources

Weglot, a plugin for multilingual WordPress websites, has a security vulnerability up to and including version 6.4.3. Attackers without a user account can use it to store comments containing script code, which is later executed in visitors' browsers.

The remedy is version 6.5 of November 23, 2026, which is not among the versions named as affected and contains security fixes. According to WordPress.org statistics, just under a third of the more than 50,000 active installations were running this version on November 30. All the others accordingly use an older, vulnerable version.

Which websites can an attack affect?

An attack requires that visitors be allowed to comment without logging in and that at least one target language is active in Weglot. If moderation is enabled, an administrator must also approve two related comments, the one with the malicious code and a second one that triggers it. Only after that does the code run for other visitors.

The security company Wordfence disclosed the flaw on November 26. In the public CVE directory of security vulnerabilities, it is listed under CVE-2026-126717. On the CVSS scale, the usual yardstick for the severity of such vulnerabilities, the vulnerability scores 7.2 out of 10 points, which corresponds to the "high" level. The US agency CISA noted in its supplement to the entry on November 27 that no attacks via the vulnerability were known up to that point.

Is the security update from October enough?

The new entry explicitly includes version 6.4.3 of October 15, so the security update at that time does not protect against this flaw. The Weglot changelog names a different flaw for that version: via manipulated link addresses, script code could be injected into translated pages.

Weglot: Dates around version 6.5
From the October update to the entry of the vulnerability in the CVE directory
  1. October 15, 2026Version 6.4.3 fixes a different flaw in link addresses
  2. November 23, 2026Version 6.5 is released with two security fixes
  3. November 26, 2026Wordfence discloses the vulnerability
  4. November 27, 2026Entry in the CVE directory names all versions up to 6.4.3
Sources: Weglot changelog, CVE Program

The CVE entry does not say which version fixes the flaw, but it refers to code change 3817725. Version 6.5 in the plugin directory is located under the same number. The changelog also lists two security fixes for version 6.5, albeit without a CVE number.

A separate comparison of the two versions shows the difference in the part of the program that reads in the HTML code of the pages. Previously, it temporarily set certain sections aside and put identifiers in their place that always began with "___noise___". Version 6.5 adds a random string to each identifier. A comment in the code explains that with a guessable identifier, a protected section could be pulled into the attribute of an HTML element. An attack was not reproduced for this news article.

Why do some addresses change with the update?

Right after the update, projects with the Weglot 2.0 product generation use their translated slugs, that is, the translated name parts in the address, if any are stored. The previous addresses then redirect to the new ones with status code 301, i.e. permanently. The 2.0 refers to the product and not to the version number of the plugin. According to the changelog, the filter "weglot_active_slugs" can be used to keep the old addresses. The matching line of code is given there.

What this means for your website

It is best to first create a backup with Duplicator or your usual tool. Then update Weglot in the "Plugins" menu under "Installed Plugins" to version 6.5, which requires WordPress 5.9 or higher and PHP 7.4 or higher. Afterwards, clear the page cache, as recommended in the changelog. If you use translated slugs, also check the links in your ads and newsletters.

Also search all entries under "Comments", including spam, for the string "___noise___". As the code comparison suggests, any comments found could be intended to abuse the old identifiers. It is therefore best to delete them rather than approve them. However, an empty search result does not prove that your website was spared.

Until the update, the option "Users must be registered and logged in to comment" in the "Settings" menu under "Discussion" helps, because the described attack requires anonymous comments. Entries that have already been approved remain in place. The steps for reviewing and approving are shown in the lesson on managing comments.

The CVE directory published the entry on Weglot on November 27, 2026.

Sources

Comments

Register and comment.

Continue reading

You might also like

View all articles →