PyPi: Django-Wm

CVE-2021-23727

Transitive

Safety vulnerability ID: 62986

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Dec 29, 2021 Updated at Nov 29, 2024
Scan your Python projects for vulnerabilities →

Advisory

Django-wm 2.0.0 updates the celery dependency to versions =< 5.2.2 due to the CVE-2021-23727.
https://github.com/beatonma/django-wm/compare/1.3.1...2.0.0#diff-fa602a8a75dc9dcc92261bac5f533c2a85e34fcceaff63b3a3a81d9acde2fc52R28

Affected package

django-wm

Latest version: 4.1.1

Webmention support for Django.

Affected versions

Fixed versions

Vulnerability changelog

Breaking Changes

- Migrations are now included. If you are upgrading from any `1.x.x` version please follow [these instructions](https://github.com/beatonma/django-wm/wiki/Guide_Upgrading-to-2.0) to avoid data loss. Thanks to **GriceTurrble for providing these instructions.

- `requirements.txt` `celery` version updated to `5.2.2` due to [CVE-2021-23727](https://github.com/advisories/GHSA-q4xr-rc97-m4xx). If you are upgrading from `4.x` please follow the [upgrade instructions](https://docs.celeryproject.org/en/stable/history/whatsnew-5.0.html#upgrading-from-celery-4-x) provided by Celery.

Web API changes:
- `/get` endpoint:
- Removed `status` from JSON object - now uses HTTP response codes `200` if the target url was resolved correctly or `404` otherwise.
- Missing HCards are now serialized as null instead of an empty dict


json5
// https://example.org/webmention/get?url=my-article
// Old 1.x.x response
{
"status": 1,
"target_url": "https://example.org/my-article",
"mentions": [
{
"hcard": {},
"quote": null,
"source_url": "https://another-example.org/their-article",
"published": "2020-01-17T21:45:24.542Z"
}
]
}


json5
// https://example.org/webmention/get?url=my-article
// New 2.0.0 response with HTTP status 200 (or 404 if target_url does not exist)
{
"target_url": "https://example.org/my-article",
"mentions": [
{
"hcard": null,
"quote": null,
"source_url": "https://another-example.org/their-article",
"published": "2020-01-17T21:45:24.542Z"
}
]
}


New
- Use`{% webmention_endpoint %}` template tag to include your Webmentions endpoint in your Django template <head> to help other sites find it easily.
html
{% load webmention_endpoint %}
<!-- my-template.html -->
...
<head>
{% webmention_endpoint %} <!-- Rendered as <link rel="webmention" href="/webmention/" /> -->
</head>
...

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

HIGH 7.5

CVSS v3 Details

HIGH 7.5
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
HIGH
Privileges Required (PR)
LOW
User Interaction (UI)
NONE
Scope (S)
UNCHANGED
Confidentiality Impact (C)
HIGH
Integrity Impact (I)
HIGH
Availability Availability (A)
HIGH

CVSS v2 Details

MEDIUM 6.0
Access Vector (AV)
NETWORK
Access Complexity (AC)
MEDIUM
Authentication (Au)
SINGLE
Confidentiality Impact (C)
PARTIAL
Integrity Impact (I)
PARTIAL
Availability Impact (A)
PARTIAL