Advisory

GHSA-xqxm-2rpm-3889

Also known as: CVE-2022-21683, PYSEC-2022-13

Summary

Comment reply notifications sent to incorrect users

Details

Impact
When notifications for new replies in comment threads are sent, they are sent to all users who have replied or commented anywhere on the site, rather than only in the relevant threads. This means that a user could listen in to new comment replies on pages they have not had editing access to, as long as they have left a comment or reply somewhere on the site.

Patches
A patched version has been released as Wagtail 2.15.2 (for the current LTS), which restores the intended behaviour - to send notifications for new replies to the participants in the active thread only (editing permissions are not considered).

Workarounds
New comments can be disabled by setting WAGTAILADMIN_COMMENTS_ENABLED = False in the Django settings file.

Acknowledgements

Many thanks to Ihor Marhitych for identifying this issue.

For more information
If you have any questions or comments about this advisory:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-01-21 23:43 UTC
Modified
2024-11-19 16:22 UTC

Affected packages and fixes

wagtail

PyPI · All systems

Affected

  • introduced 2.13, fixed 2.15.2 (ecosystem)

Fixed versions

2.15.2

Fix

  • Fixed version 2.15.2
    pip install --upgrade wagtail==2.15.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences