VDB
Sign up
LOW3.1

GHSA-7xp8-7wqx-5hqx

Jenkins REST APIs vulnerable to clickjacking

Quick fix

GHSA-7xp8-7wqx-5hqx — org.jenkins-ci.main:jenkins-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.204.2</version> for org.jenkins-ci.main:jenkins-core

Details

Jenkins 2.218 and earlier, LTS 2.204.1 and earlier does not serve the `X-Frame-Options: deny` HTTP header on REST API responses to protect against clickjacking attacks. An attacker could exploit this by routing the victim through a specially crafted web page that embeds a REST API endpoint in an iframe and tricking the user into performing an action which would allow for the attacker to learn the content of that REST API endpoint.

Jenkins 2.219, LTS 2.204.2 now adds the `X-Frame-Options: deny` HTTP header to REST API responses, which prevents these types of clickjacking attacks.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.jenkins-ci.main:jenkins-core
Introduced in: 0Fixed in: 2.204.2
Fix# pom.xml: bump <version>2.204.2</version> for org.jenkins-ci.main:jenkins-core
Maven/org.jenkins-ci.main:jenkins-core
Introduced in: 2.205Fixed in: 2.219
Fix# pom.xml: bump <version>2.219</version> for org.jenkins-ci.main:jenkins-core

References