CVE-2022-4714

WP Dark Mode < 4.0.0 - Contributor+ Stored XSS in Shortcode

5.4 medium EPSS 0.46%

Published 21 Feb 2023 Updated 5 May 2025 CNA: WPScan

Description

The WP Dark Mode WordPress plugin before 4.0.0 does not validate and escape one of its shortcode attributes, which could allow users with a role as low as contributor to perform Stored Cross-Site Scripting attack

Severity (CVSS)

5.4 medium CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
required: a user has to do something, such as open a link or a file
Scope
changed: the damage reaches other components, such as the host of a container or other users
Impact
confidentiality low, integrity low, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.46%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 41.3% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 23 Apr 2025):

Exploitation
poc: a proof of concept is public
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-79 Improper Neutralization of Input During Web Page Generation

Affected products

As the CNA lists them.

ProductVersions
WP Dark Mode
Unknown
affected before 4.0.0
Other versions: unaffected

Is my server affected?

This CVE is in a product, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Exploits and proof of concept

Source: the record CVE-2022-4714 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.