Skip to content
Heist/ feed
Back to feed
MediumFix available

djangorestframework — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2020-25626

A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2. When using the browseable API viewer, Django REST Framework fails to properly escape certain strings that can come from user input. This allows a user who can control those strings to inject malicious

Products
djangorestframework
Affected versions
Not specified
Fixed versions
3.12.1-1
CVEs
CVE-2020-25626
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 13:42 UTC · Revision 1

Source evidence

DEBIAN-CVE-2020-25626

core-osv · Original source

Published 30 Sept 2020, 20:15 UTC

A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2. When using the browseable API viewer, Django REST Framework fails to properly escape certain strings that can come from user input. This allows a user who can control those strings to inject malicious

osv:DEBIAN-CVE-2020-25626

djangorestframework

Fixed versions: 3.12.1-1

djangorestframework

Fixed versions: 3.12.1-1

djangorestframework

Fixed versions: 3.12.1-1

Complete source record
{
  "id": "ab7ca7919fc926f20e0dea274eb72d7f7009fb6d967710bab458c75fdffe8682",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2020-25626",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2020-25626",
    "summary": "A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2. When using the browseable API viewer, Django REST Framework fails to properly escape certain strings that can come from user input. This allows a user who can control those strings to inject malicious",
    "evidence": "osv:DEBIAN-CVE-2020-25626",
    "products": [
      {
        "name": {
          "value": "djangorestframework",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.12.1-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "djangorestframework",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.12.1-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "djangorestframework",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.12.1-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2020-25626",
      "aliases": [
        "DEBIAN-CVE-2020-25626"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.12.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "djangorestframework",
            "purl": "pkg:deb/debian/djangorestframework?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-25626.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.12.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "djangorestframework",
            "purl": "pkg:deb/debian/djangorestframework?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-25626.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.12.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "djangorestframework",
            "purl": "pkg:deb/debian/djangorestframework?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-25626.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T12:02:40.347489112Z",
      "provider": "osv",
      "upstream": [
        "CVE-2020-25626"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2020-25626"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2020-25626",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 452712,
  "published_at": "2020-09-30T20:15:15.48+00:00"
}