---
id: CVE-2026-104652
title: >-
  The Envira Gallery  WordPress plugin before 1.16.1 does not sanitise and
  escape a gallery item identifier before outputting it in an image tag
  attribute, allowing users with the Author role and above to inject arbitrary
  web scripts that …
summary: >-
  The Envira Gallery  WordPress plugin before 1.16.1 does not sanitise and
  escape a gallery item identifier before outputting it in an image tag
  attribute, allowing users with the Author role and above to inject arbitrary
  web scripts that …
severity: medium
cvss: 6.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-79
product: Envira Gallery
affected:
  - envira_gallery < 1.16.1
published: '2026-10-07'
updated: '2026-10-07'
sourceUpdated: '2026-10-07T10:17:26.560'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-104652'
references:
  - url: 'https://wpscan.com/vulnerability/bbeb86c6-201e-4d43-9290-ee75f8c0e296/'
    label: contact@wpscan.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-07T09:55:22.727711Z'
ingestedAt: '2026-10-07T08:20:03.938Z'
---

## Overview

The Envira Gallery  WordPress plugin before 1.16.1 does not sanitise and escape a gallery item identifier before outputting it in an image tag attribute, allowing users with the Author role and above to inject arbitrary web scripts that execute when any visitor, including an administrator, views a page embedding the gallery.

## Remediation

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