---
id: CVE-2021-21431
aliases:
  - GHSA-23c7-6444-399m
  - PYSEC-2021-58
title: Improper Input Validation in sopel-plugins.channelmgnt
summary: Improper Input Validation in sopel-plugins.channelmgnt
severity: high
cvss: 7.6
cvssVector: 'CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:C/C:N/I:H/A:H'
vendor: sopel-plugins-channelmgnt
product: sopel-plugins-channelmgnt
ecosystem: pip
affected:
  - sopel-plugins-channelmgnt < 2.0.1
patched:
  - sopel-plugins-channelmgnt 2.0.1
published: '2021-04-09'
updated: '2026-07-13'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-23c7-6444-399m'
references:
  - url: >-
      https://github.com/MirahezeBots/sopel-channelmgnt/security/advisories/GHSA-23c7-6444-399m
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2021-21431'
  - url: >-
      https://github.com/MirahezeBots/sopel-channelmgnt/commit/643388365f28c5cc682254ab913c401f0e53260a
  - url: >-
      https://github.com/MirahezeBots/sopel-channelmgnt/commit/7c96d400358221e59135f0a0be0744f3fad73856
  - url: 'https://github.com/MirahezeBots/sopel-channelmgnt'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/sopel-plugins-channelmgnt/PYSEC-2021-58.yaml
  - url: 'https://pypi.org/project/sopel-plugins.channelmgnt'
tags:
  - osv
  - pip
epss: 0.01081
epssPercentile: 0.63702
ingestedAt: '2026-07-13T18:57:50.977Z'
---

## Overview

### Impact
On some IRC servers, restrictions around the removal of the bot using the kick/kickban command could be bypassed when kicking multiple users at once.
We also believe it may have been possible to remove users from other channels but due to the wonder that is IRC and following RfCs, We have no POC for that.

Freenode is not affected.

### Patches
Upgrade to 2.0.1 or higher

### Workarounds
Do not use this plugin on networks where TARGMAX > 1.

### For more information
If you have any questions or comments about this advisory:
* Open an issue on [phab](https://phab.mirahezebots.org/maniphest/task/edit/form/1/).
* Email us at [staff(at)mirahezebots(dot)org](mailto:staff@mirahezebots.org)

## Affected packages

- `sopel-plugins-channelmgnt < 2.0.1`

## Remediation

Upgrade to a patched release:

- `sopel-plugins-channelmgnt 2.0.1`
