{"id":"USN-9421-1","summary":"djangorestframework vulnerabilities","details":"It was discovered that Django REST framework did not properly escape\ncertain strings in its browsable API viewer. A remote attacker could\npossibly use this issue to perform cross-site scripting attacks. This issue\nonly affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS.\n(CVE-2020-25626)\n\nIt was discovered that Django REST framework did not properly handle\ncharacter encodings specified in JSON requests. A remote attacker could\npossibly use this issue to cause Django REST framework to use excessive\nresources, leading to a denial of service. (CVE-2026-114136)\n\nIt was discovered that Django REST framework did not properly revoke\nauthentication tokens in certain cases. Tokens that were believed to be\nrevoked could continue to be used, and an attacker could possibly use this\nissue to retain unauthorized access. This issue only affected Ubuntu 22.04\nLTS, Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-114137)\n\nIt was discovered that Django REST framework did not properly limit the\namount of content negotiation data it processed. A remote attacker could\npossibly use this issue to cause Django REST framework to use excessive\nresources, leading to a denial of service. (CVE-2026-114138)","modified":"2026-12-03T20:59:17.080174539Z","published":"2026-12-02T19:32:25Z","related":["UBUNTU-CVE-2020-25626","UBUNTU-CVE-2026-114136","UBUNTU-CVE-2026-114137","UBUNTU-CVE-2026-114138"],"upstream":["CVE-2020-25626","CVE-2026-114136","CVE-2026-114137","CVE-2026-114138","UBUNTU-CVE-2020-25626","UBUNTU-CVE-2026-114136","UBUNTU-CVE-2026-114137","UBUNTU-CVE-2026-114138"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-9421-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-25626"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-114136"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-114137"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-114138"}],"affected":[{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=esm-apps-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.2-2ubuntu0.1~esm1"}]}],"versions":["2.4.3-2","3.3.1-1","3.3.2-1","3.3.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"python-djangorestframework","binary_version":"3.3.2-2ubuntu0.1~esm1"},{"binary_name":"python3-djangorestframework","binary_version":"3.3.2-2ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"},"database_specific":{"cves_map":{"cves":[{"id":"CVE-2020-25626","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"NVD","type":"CVSS_V3"},{"type":"Ubuntu","score":"medium","source":"SELF"}]},{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CNA"},{"source":"SELF","type":"Ubuntu","score":"medium"}],"id":"CVE-2026-114136"},{"id":"CVE-2026-114138","severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"source":"SELF","type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:Pro:16.04:LTS"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9421-1.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.7.7-1ubuntu0.1~esm1"}]}],"versions":["3.4.0-2","3.7.7-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"python-djangorestframework","binary_version":"3.7.7-1ubuntu0.1~esm1"},{"binary_version":"3.7.7-1ubuntu0.1~esm1","binary_name":"python3-djangorestframework"}]},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:18.04:LTS","cves":[{"id":"CVE-2020-25626","severity":[{"source":"NVD","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"source":"SELF","type":"Ubuntu","score":"medium"}]},{"id":"CVE-2026-114136","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CNA"},{"score":"medium","source":"SELF","type":"Ubuntu"}]},{"id":"CVE-2026-114138","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CNA","type":"CVSS_V3"},{"score":"medium","source":"SELF","type":"Ubuntu"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9421-1.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.2-1ubuntu0.1~esm1"}]}],"versions":["3.9.0-2","3.10.2-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"3.10.2-1ubuntu0.1~esm1","binary_name":"python3-djangorestframework"}]},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:20.04:LTS","cves":[{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"NVD"},{"source":"SELF","type":"Ubuntu","score":"medium"}],"id":"CVE-2020-25626"},{"id":"CVE-2026-114136","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CNA"},{"score":"medium","source":"SELF","type":"Ubuntu"}]},{"id":"CVE-2026-114138","severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"score":"medium","source":"SELF","type":"Ubuntu"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9421-1.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12.4-2.1ubuntu1+esm1"}]}],"versions":["3.12.1-1","3.12.4-1","3.12.4-2","3.12.4-2ubuntu1","3.12.4-2.1ubuntu1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"3.12.4-2.1ubuntu1+esm1","binary_name":"python3-djangorestframework"}]},"database_specific":{"cves_map":{"cves":[{"severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium","source":"SELF"}],"id":"CVE-2026-114136"},{"severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"CNA","type":"CVSS_V3"},{"type":"Ubuntu","score":"medium","source":"SELF"}],"id":"CVE-2026-114137"},{"id":"CVE-2026-114138","severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}],"ecosystem":"Ubuntu:Pro:22.04:LTS"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9421-1.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.14.0-2ubuntu0.1~esm1"}]}],"versions":["3.14.0-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"python3-djangorestframework","binary_version":"3.14.0-2ubuntu0.1~esm1"}]},"database_specific":{"cves_map":{"cves":[{"id":"CVE-2026-114136","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CNA","type":"CVSS_V3"},{"type":"Ubuntu","score":"medium","source":"SELF"}]},{"id":"CVE-2026-114137","severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"type":"Ubuntu","score":"medium","source":"SELF"}]},{"id":"CVE-2026-114138","severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"source":"SELF","type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:Pro:24.04:LTS"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9421-1.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=esm-apps%2Fresolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.16.1-3ubuntu0.1~esm1"}]}],"versions":["3.16.1-1","3.16.1-3"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-djangorestframework","binary_version":"3.16.1-3ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:26.04:LTS","cves":[{"severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CNA","type":"CVSS_V3"},{"type":"Ubuntu","score":"medium","source":"SELF"}],"id":"CVE-2026-114136"},{"severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"score":"medium","source":"SELF","type":"Ubuntu"}],"id":"CVE-2026-114137"},{"id":"CVE-2026-114138","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CNA","type":"CVSS_V3"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9421-1.json"}}],"schema_version":"1.9.2"}