{"id":"CVE-2021-21610","aliases":["CVE-2021-21610","GHSA-7qf3-c2q8-69m3","BIT-JENKINS-2021-21610"],"related":[],"kind":"vulnerability","state":"published","title":"Reflected XSS vulnerability in Jenkins markup formatter preview","summary":"Jenkins 2.274 and earlier, LTS 2.263.1 and earlier does not implement any restrictions for the URL rendering a formatted preview of markup passed as a query parameter, resulting in a reflected cross-site scripting (XSS) vulnerability if the configured markup formatter does not prohibit unsafe elements (JavaScript) in markup.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Jenkins 2.274 and earlier, LTS 2.263.1 and earlier does not implement any restrictions for the URL rendering a formatted preview of markup passed as a query parameter, resulting in a reflected cross-site scripting (XSS) vulnerability if the configured markup formatter does not prohibit unsafe elements (JavaScript) in markup.","source":"cvelist"},{"lang":"en","text":"Jenkins allows administrators to choose the markup formatter to use for descriptions of jobs, builds, views, etc. displayed in Jenkins. When editing such a description, users can choose to have Jenkins render a formatted preview of the description they entered.\n\nJenkins 2.274 and earlier, LTS 2.263.1 and earlier does not implement any restrictions for the URL rendering the formatted preview of markup passed as a query parameter. This results in a reflected cross-site scripting (XSS) vulnerability if the configured markup formatter does not prohibit unsafe elements (JavaScript) in markup, like [Anything Goes Formatter Plugin](https://plugins.jenkins.io/anything-goes-formatter/).\n\nJenkins 2.275, LTS 2.263.2 requires that preview URLs are accessed using POST and sets Content-Security-Policy headers that prevent execution of unsafe elements when the URL is accessed directly.\n\nIn case of problems with this change, these protections can be disabled by setting the [Java system properties](https://www.jenkins.io/doc/book/managing/system-properties/) `hudson.markup.MarkupFormatter.previewsAllowGET` to `true` and/or `hudson.markup.MarkupFormatter.previewsSetCSP` to `false`. Doing either is discouraged.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Jenkins versiones 2.274 y anteriores, LTS versiones 2.263.1 y anteriores, no implementan ninguna restricción para la URL que presenta una vista previa formateada del marcado pasado como un parámetro de consulta, resultando en una vulnerabilidad de tipo cross-site scripting (XSS) reflejada si el formateador de marcado configurado no prohíbe elementos no seguros (JavaScript) en el marcado.","source":"nvd"}],"published":"2021-01-13T15:55:32.000Z","modified":"2026-09-08T08:48:00.833Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"2.274","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"LTS 2.263.1","status":"affected"}],"vendor":"Jenkins project","product":"Jenkins","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.263.2"}],"ecosystem":"Maven","package":"org.jenkins-ci.main:jenkins-core","purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.264","status":"affected","fixed":"2.275"}],"ecosystem":"Maven","package":"org.jenkins-ci.main:jenkins-core","purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"2.263.1"},{"status":"affected","lastAffected":"2.274"}],"vendor":"jenkins","product":"jenkins","cpe":"cpe:2.3:a:jenkins:jenkins:*:*:*:*:lts:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.274.1"}],"ecosystem":"Bitnami","package":"jenkins","purl":"pkg:bitnami/jenkins","source":"bitnami"}],"references":[{"url":"https://www.jenkins.io/security/advisory/2021-01-13/#SECURITY-2153","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21610","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/jenkinsci/jenkins/commit/89ec0c40b68cd1e4e9f9ef5ebcafd87e7fa16589","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jenkinsci/jenkins","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"jenkins","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21610","url":"https://www.cve.org/CVERecord?id=CVE-2021-21610","licence":"CVE Terms of Use","modified":"2024-08-03T18:16:23.627Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7qf3-c2q8-69m3","url":"https://github.com/advisories/GHSA-7qf3-c2q8-69m3","licence":"CC-BY-4.0","modified":"2024-02-16T07:55:46.670Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21610","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21610","licence":"Public domain","modified":"2026-06-17T03:35:52.140Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-JENKINS-2021-21610","url":"https://osv.dev/vulnerability/BIT-JENKINS-2021-21610","licence":"Apache-2.0","modified":"2026-09-08T08:48:00.833Z"}],"updatedAt":"2026-11-25T22:57:59.355Z","epss":{"score":0.01199,"percentile":0.69012,"date":"2026-12-01T12:00:22.000Z"}}