{"id":"CVE-2021-21640","aliases":["BIT-jenkins-2021-21640","GHSA-w2hv-rcqr-2h7r"],"url":"https://o3.security/vulnerability/CVE-2021-21640","summary":"View name validation bypass in Jenkins","details":"Jenkins 2.286 and earlier, LTS 2.277.1 and earlier does not properly check that a newly created view has an allowed name. When a form to create a view is submitted, the name is included twice in the submission. One instance is validated, but the other instance is used to create the value.\n\nThis allows attackers with View/Create permission to create views with invalid or already-used names.\n\nJenkins 2.287, LTS 2.277.2 uses the same submitted value for validation and view creation.","published":"2021-04-07T14:15:17.017Z","modified":"2026-10-24T10:31:00.797142346Z","cvss":{"score":4.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"},"epss":{"score":0.01905,"percentile":0.77876,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.jenkins-ci.main:jenkins-core","fixedVersion":"2.277.2"},{"ecosystem":"Maven","name":"org.jenkins-ci.main:jenkins-core","fixedVersion":"2.287"}],"fix":{"url":"https://github.com/jenkinsci/jenkins/commit/42e2c74049ddf5e0aca1fe6aadc7b24fdabb5494","label":"jenkinsci/jenkins@42e2c74"},"references":[{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2021/04/07/2"},{"type":"ADVISORY","url":"https://www.jenkins.io/security/advisory/2021-04-07/#SECURITY-1871"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21640"},{"type":"WEB","url":"https://github.com/jenkinsci/jenkins/commit/42e2c74049ddf5e0aca1fe6aadc7b24fdabb5494"},{"type":"PACKAGE","url":"https://github.com/jenkinsci/jenkins"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-24T10:31:00.797142346Z"}}