logo

CVE-2022-34778 org.jenkins-ci.plugins:testng-plugin

Package

Manager: maven
Name: org.jenkins-ci.plugins:testng-plugin
Vulnerable Version: >=0 <555.va0d5f66521e3

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

EPSS: 0.14252 pctl0.94153

Details

Cross-site Scripting in Jenkins TestNG Results Plugin TestNG Results Plugin has options in its post-build step configuration to not escape test descriptions and exception messages. If those options are unchecked, TestNG Results Plugin 554.va4a552116332 and earlier renders the unescaped text provided in test results. This results in a cross-site scripting (XSS) vulnerability exploitable by attackers able to configure jobs or control test results. TestNG Results Plugin 555.va0d5f66521e3 by default ignores the user-level options to not escape content. Administrators who want to restore this functionality must set the [Java system property](https://www.jenkins.io/doc/book/managing/system-properties/) `hudson.plugins.testng.Publisher.allowUnescapedHTML` to true.

Metadata

Created: 2022-07-01T00:01:07Z
Modified: 2022-12-09T04:36:22Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-8hv7-4vfc-w8pg/GHSA-8hv7-4vfc-w8pg.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-8hv7-4vfc-w8pg
Finding: F425
Auto approve: 1