UBUNTU-CVE-2024-21520

Source
https://ubuntu.com/security/CVE-2024-21520
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21520.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-21520
Related
Published
2024-06-26T05:15:00Z
Modified
2024-10-15T14:12:50Z
Summary
[none]
Details

Versions of the package djangorestframework before 3.15.2 are vulnerable to Cross-site Scripting (XSS) via the breaklongheaders template filter due to improper input sanitization before splitting and joining with <br> tags.

References

Affected packages

Ubuntu:Pro:16.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.4.3-2

3.*

3.3.1-1
3.3.2-1
3.3.2-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:18.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.4.0-2
3.7.7-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.9.0-2
3.10.2-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.12.1-1
3.12.4-1
3.12.4-2
3.12.4-2ubuntu1
3.12.4-2.1ubuntu1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework?arch=src?distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.15.2-1

Affected versions

3.*

3.14.0-2
3.15.1-1
3.15.1-2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "3.15.2-1",
            "binary_name": "python-djangorestframework-doc"
        },
        {
            "binary_version": "3.15.2-1",
            "binary_name": "python3-djangorestframework"
        }
    ]
}

Ubuntu:24.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.14.0-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}