CVE-2023-25764 Cross-site Scripting in Jenkins Email Extension Plugin

Medium 5.4 Published Updated

Attackers with template creation privileges can inject malicious scripts into email templates, leading to stored XSS attacks against Jenkins users.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-25764?

CVE-2023-25764 is a medium-severity cross-site scripting vulnerability in Jenkins Email Extension Plugin, published on 15 Feb 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Jenkins Email Extension Plugin 2.93 and earlier does not escape, sanitize, or sandbox rendered email template output or log output generated during template rendering, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to create or change custom email templates.

Weakness: CWE-79

Which versions are affected by CVE-2023-25764?

2 open source packages ship an affected version, including org.jenkins-ci.plugins:email-ext. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:email-ext MavenAll versions2.94
org.jenkins-ci.plugins:email-ext MavenAll versions2.94

Products include Jenkins Email Extension.

How do I fix CVE-2023-25764?

Upgrade org.jenkins-ci.plugins:email-ext to 2.94 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-25764 being exploited?

There is no known exploitation of CVE-2023-25764 in the wild and no public exploit code.

Sources

Also known as GHSA-p2fr-mq9m-6w6p.

Is CVE-2023-25764 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free