---
id: CVE-2025-12717
title: >-
  The List Attachments Shortcode plugin for WordPress is vulnerable to Stored
  Cross-Site Scripting via the 'before_list' parameter in the [list-attachments]
  shortcode in all versions up to, and including, 0.4.1a due to insufficient
  input s…
summary: >-
  The List Attachments Shortcode plugin for WordPress is vulnerable to Stored
  Cross-Site Scripting via the 'before_list' parameter in the [list-attachments]
  shortcode in all versions up to, and including, 0.4.1a due to insufficient
  input s…
severity: medium
cvss: 6.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
published: '2025-12-06'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T20:10:00.197'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-12717'
references:
  - url: >-
      https://plugins.trac.wordpress.org/browser/list-attachments-shortcode/tags/0.6a/class-list-attachments-shortcode.php#L47
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/list-attachments-shortcode/tags/0.6a/class-list-attachments-shortcode.php#L85
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/a67b4ec2-b337-478f-aaaa-2ce19c4deb4c?source=cve
    label: security@wordfence.com
tags:
  - nvd
epss: 0.00235
epssPercentile: 0.14336
ingestedAt: '2026-10-27T18:12:09.286Z'
---

## Overview

The List Attachments Shortcode plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'before_list' parameter in the [list-attachments] shortcode in all versions up to, and including, 0.4.1a due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
