GHSA-8hv7-4vfc-w8pg
Dashboard / Vulnerabilities / GHSA-8hv7-4vfc-w8pg
Summary: Cross-site Scripting in Jenkins TestNG Results Plugin
Details: 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.
References: https://nvd.nist.gov/vuln/detail/CVE-2022-34778, https://github.com/jenkinsci/testng-plugin-plugin/commit/a0d5f66521e3bc470047a0b683004ce8889d3369, https://github.com/jenkinsci/testng-plugin-plugin, https://www.jenkins.io/security/advisory/2022-06-30/#SECURITY-2788
Affected packages
Package
Name: org.jenkins-ci.plugins:testng-plugin
Purl: pkg:maven/org.jenkins-ci.plugins/testng-plugin
Affected ranges
Type: ECOSYSTEM
Events:
