{"id":"CVE-2021-21639","aliases":["BIT-jenkins-2021-21639","GHSA-pvwx-3jx5-24r2"],"url":"https://o3.security/vulnerability/CVE-2021-21639","summary":"Lack of type validation in agent related REST API in Jenkins","details":"Jenkins 2.286 and earlier, LTS 2.277.1 and earlier does not validate the type of object created after loading the data submitted to the `config.xml` REST API endpoint of a node.\n\nThis allows attackers with Computer/Configure permission to replace a node with one of a different type.\n\nJenkins 2.287, LTS 2.277.2 validates the type of object created and rejects objects of unexpected types.","published":"2021-04-07T14:15:16.890Z","modified":"2026-07-09T04:31:36.643444Z","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":null,"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/84210baed0c866bdee3e59271f98a767a14a5509","label":"jenkinsci/jenkins@84210ba"},"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-1721"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21639"},{"type":"WEB","url":"https://github.com/jenkinsci/jenkins/commit/84210baed0c866bdee3e59271f98a767a14a5509"},{"type":"PACKAGE","url":"https://github.com/jenkinsci/jenkins"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T04:31:36.643444Z"}}