Origin Validation Error Affecting org.jenkins-ci.main:jenkins-core package, versions [,2.426.3) [2.427,2.440.1) [2.441,2.442)


0.0
high

Snyk CVSS

    Attack Complexity Low
    User Interaction Required
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    EPSS 0.07% (31st percentile)
Expand this section
NVD
8.8 high
Expand this section
Red Hat
8.8 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JAVA-ORGJENKINSCIMAIN-6191175
  • published 26 Jan 2024
  • disclosed 24 Jan 2024
  • credit Yaniv Nizry

How to fix?

Upgrade org.jenkins-ci.main:jenkins-core to version 2.426.3, 2.440.1, 2.442 or higher.

Overview

org.jenkins-ci.main:jenkins-core is an open source automation server.

Affected versions of this package are vulnerable to Origin Validation Error due to a lack of origin validation on the CLI WebSocket endpoint. An attacker can execute arbitrary CLI commands on the Jenkins controller by exploiting the cross-site WebSocket hijacking vulnerability.

Note:

Jenkins does not set an explicit SameSite attribute for session cookies. This can allow cross-site requests to make use of the session cookie, i.e., those requests are sent with the logged-in user’s authentication.

Workaround

  1. Prevent WebSocket access using a reverse proxy

  2. Disable CLI access