Skip to content
FortressDiscuss your projectMenu

CVE-2026-13701

Advanced Excerpt: Admin+ Stored XSS via Ellipsis Setting

Product
Advanced Excerpt (WordPress plugin)
Versions
Before 4.5 · fixed in 4.5
Severity
MediumCVSS score 4.8 · WPScan
CVE
CVE-2026-13701, assigned by WPScan
Found by
Mustafa Ahmed, Fortress MSSP
Published
November 11, 2026CVE published by WPScan on August 10, 2026

Description

The Advanced Excerpt WordPress plugin before 4.5 does not sanitise and escape one of its settings before outputting it on the front end of the site, which could allow administrators (including those without the unfiltered_html capability, such as on multisite) to perform Stored Cross-Site Scripting attacks that execute in the context of any visitor viewing affected pages.

From the CVE record · CWE-79 Cross-Site Scripting (XSS)

Technical analysis

update_options() copies $_POST['ellipsis'] (and the other text settings) straight into the advanced_excerpt option and saves it with update_option(), with no sanitisation (line 454). The stored ellipsis is later passed to text_add_more(), which appends $ellipsis to the generated excerpt HTML without escaping (lines 429, 433 and 438 of the same file). Any markup saved in the setting is therefore emitted as is wherever the plugin renders excerpts on the front end, regardless of whether the saving administrator has unfiltered_html.

Vulnerable: class/advanced-excerpt.php, version 4.4.1
		$this->options['length_type'] = $_POST['length_type'];

		$this->options['finish'] = $_POST['finish'];

		$this->options['ellipsis'] = $_POST['ellipsis'];

		$this->options['read_more'] = isset( $_POST['read_more'] ) ? $_POST['read_more'] : $this->options['read_more'];

		$this->options['allowed_tags'] = ( isset( $_POST['allowed_tags'] ) ) ? array_unique( (array) $_POST['allowed_tags'] ) : array();

		$this->options['exclude_pages'] = ( isset( $_POST['exclude_pages'] ) ) ? array_unique( (array) $_POST['exclude_pages'] ) : array();

		$this->options['allowed_tags_option'] = $_POST['allowed_tags_option'];



		update_option( 'advanced_excerpt', $this->options );

4.5 passes ellipsis and the other text settings through sanitize_text_field() before saving, and text_add_more() now escapes the value at output with $ellipsis = esc_html( $ellipsis ); (line 397 of the 4.5 file).

Fixed: class/advanced-excerpt.php, version 4.5
		$this->options['length_type'] = sanitize_text_field( $_POST['length_type'] );

		$this->options['finish'] = sanitize_text_field( $_POST['finish'] );

		$this->options['ellipsis'] = sanitize_text_field( $_POST['ellipsis'] );

		$this->options['read_more'] = isset( $_POST['read_more'] ) ? sanitize_text_field( $_POST['read_more'] ) : $this->options['read_more'];

		$this->options['allowed_tags'] = ( isset( $_POST['allowed_tags'] ) ) ? array_unique( array_map( 'sanitize_text_field', (array) $_POST['allowed_tags'] ) ) : array();

		$this->options['exclude_pages'] = ( isset( $_POST['exclude_pages'] ) ) ? array_unique( array_map( 'sanitize_text_field', (array) $_POST['exclude_pages'] ) ) : array();

		$this->options['allowed_tags_option'] = sanitize_text_field( $_POST['allowed_tags_option'] );



		update_option( 'advanced_excerpt', $this->options );

Fortress’s reading of the public source code at the versions shown.

Proof of concept

As published by WPScan in its advisory on August 6, 2026.

Prerequisites: Advanced Excerpt installed and active. Because this is an Admin+ issue, test with the unfiltered_html capability disabled (e.g. define('DISALLOW_UNFILTERED_HTML', true); in wp-config.php, or any multisite install where non-super Administrators already lack it), so the payload cannot be entered through normally-permitted HTML.

1. Publish a post whose body is long enough to be trimmed into an excerpt (longer than the configured word length, default 40), and ensure the front page or an archive page displays post excerpts.
2. As an Administrator, go to Settings > Excerpt and set the 'Ellipsis' field to the following, then save:
   "><img src=x onerror=alert(document.domain)>
3. Visit the site homepage (or any archive page showing excerpts) as any visitor. The injected <img onerror> is emitted unescaped in the excerpt and the JavaScript executes in the visitor's browser.

Severity

WPScan rates it 4.8 (medium). CISA’s ADP scores it 4.8 (medium) in the CVE record.

  • CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:NCISA ADP

Remediation

Update Advanced Excerpt to 4.5 or later.

Disclosure timeline

  1. CVE ID reserved by WPScan.
  2. Fix committed to the plugin repository (r3630988).
  3. Version 4.5 released.
  4. WPScan advisory published.
  5. CVE published by WPScan.
  6. Published on this site.

Credit

Found and reported by Mustafa Ahmed of Fortress MSSP. The CVE record credits Mustafa Ahmed as finder and WPScan as coordinator.

WPScan's advisory lists Mustafa Ahmed as original researcher and submitter, with fortressmssp.com as the submitter's website.

References