Moderate severityNVD Advisory· Published Oct 16, 2015· Updated May 6, 2026
CVE-2015-1812
CVE-2015-1812
Description
Cross-site scripting (XSS) vulnerability in Jenkins before 1.606 and LTS before 1.596.2 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors, a different vulnerability than CVE-2015-1813.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.jenkins-ci.main:jenkins-coreMaven | < 1.596.2 | 1.596.2 |
org.jenkins-ci.main:jenkins-coreMaven | >= 1.600, < 1.606 | 1.606 |
Affected products
3cpe:2.3:a:jenkins:jenkins:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:jenkins:jenkins:*:*:*:*:*:*:*:*range: <=1.605
- cpe:2.3:a:jenkins:jenkins:*:*:*:*:lts:*:*:*range: <=1.596.1
Patches
3f58ba6e72f97Merge pull request #15 from jenkinsci-cert/SECURITY-171
2 files changed · +10 −1
core/src/main/java/hudson/util/FormValidation.java+1 −1 modified@@ -196,7 +196,7 @@ private static FormValidation _error(Kind kind, Throwable e, String message) { " <a href='#' class='showDetails'>" + Messages.FormValidation_Error_Details() + "</a><pre style='display:none'>" - + Functions.printThrowable(e) + + + Util.escape(Functions.printThrowable(e)) + "</pre>",kind ); }
core/src/test/java/hudson/util/FormValidationTest.java+9 −0 modified@@ -23,6 +23,10 @@ */ package hudson.util; +import static org.hamcrest.CoreMatchers.containsString; +import static org.hamcrest.CoreMatchers.not; +import static org.hamcrest.MatcherAssert.assertThat; + import junit.framework.TestCase; /** @@ -51,4 +55,9 @@ public void testValidateRequired_Empty() { public void testMessage() { assertEquals("test msg", FormValidation.errorWithMarkup("test msg").getMessage()); } + + public void testFormValidationException() { + FormValidation fv = FormValidation.error(new Exception("<html"), "Message<html"); + assertThat(fv.renderHtml(), not(containsString("<html"))); + } }
1 file changed · +9 −0
core/src/test/java/hudson/util/FormValidationTest.java+9 −0 modified@@ -23,6 +23,10 @@ */ package hudson.util; +import static org.hamcrest.CoreMatchers.containsString; +import static org.hamcrest.CoreMatchers.not; +import static org.hamcrest.MatcherAssert.assertThat; + import junit.framework.TestCase; /** @@ -51,4 +55,9 @@ public void testValidateRequired_Empty() { public void testMessage() { assertEquals("test msg", FormValidation.errorWithMarkup("test msg").getMessage()); } + + public void testFormValidationException() { + FormValidation fv = FormValidation.error(new Exception("<html"), "Message<html"); + assertThat(fv.renderHtml(), not(containsString("<html"))); + } }
feb2703adb0c[FIXED SECURITY-171]
1 file changed · +1 −1
core/src/main/java/hudson/util/FormValidation.java+1 −1 modified@@ -196,7 +196,7 @@ private static FormValidation _error(Kind kind, Throwable e, String message) { " <a href='#' class='showDetails'>" + Messages.FormValidation_Error_Details() + "</a><pre style='display:none'>" - + Functions.printThrowable(e) + + + Util.escape(Functions.printThrowable(e)) + "</pre>",kind ); }
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
9- github.com/advisories/GHSA-w5v7-q2j4-fvpfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2015-1812ghsaADVISORY
- wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2015-03-23nvdVendor AdvisoryWEB
- rhn.redhat.com/errata/RHSA-2015-1844.htmlnvdWEB
- access.redhat.com/errata/RHSA-2016:0070nvdWEB
- bugzilla.redhat.com/show_bug.cginvdWEB
- github.com/jenkinsci/jenkins/commit/f58ba6e72f978e2f73299e38a1b54ff70fc73fd8ghsaWEB
- github.com/jenkinsci/jenkins/commit/f880d8d2cd9d46987ee3630fa04f77b17784f4e8ghsaWEB
- github.com/jenkinsci/jenkins/commit/feb2703adb0c121705e5c8e9ddf8f663b6481cbdghsaWEB
News mentions
0No linked articles in our index yet.