Stored cross-site scripting in JUnit - CVE-2023-25761

 

Stored cross-site scripting in JUnit - CVE-2023-25761

Published: February 21, 2023


Vulnerability identifier: #VU72437
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2023-25761
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to the affected plugin does not escape test case class names in JavaScript expressions. A remote user can inject and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Affected software

JUnit
Red Hat OpenShift Container Platform
OpenShift Developer Tools and Services
cri-o (Red Hat package)
jenkins (Red Hat package)
jenkins-2-plugins (Red Hat package)

How to mitigate CVE-2023-25761

Install updates from vendor's website.

JUnit - update to 1166.1168.vd6b_8042a_06de
Red Hat OpenShift Container Platform - update to 4.10.58
cri-o (Red Hat package) - addressed in versions 1.23.5-10.rhaos4.10.gitcc8441d.el7, 1.23.5-10.rhaos4.10.gitcc8441d.el8
jenkins (Red Hat package) - addressed in versions 2.387.1.1681718871-1.el8, 2.387.1.1683009763-3.el8, 2.387.1.1683009767-3.el8, 2.387.3.1684911776-3.el8, 2.414.3.1698292201-3.el8, 2.414.3.1698293911-3.el8, 2.414.3.1698298955-3.el8, 2.426.3.1706515686-3.el8, 2.426.3.1706516254-3.el8, 2.426.3.1706516352-3.el8, 2.426.3.1706516929-3.el8
jenkins-2-plugins (Red Hat package) - addressed in versions 4.10.1681719745-1.el8, 4.11.1683009941-1.el8, 4.11.1698299029-1.el8, 4.11.1706516946-1.el8, 4.12.1683009955-1.el8, 4.12.1698294000-1.el8, 4.12.1706515741-1.el8, 4.13.1684911916-1.el8, 4.13.1698292274-1.el8, 4.13.1706516346-1.el8, 4.14.1706516441-1.el8

External References

Related Security Bulletins