Vulnerabilities in pkg:pypi/chatterbot

PACKAGE
Advisory Identifier: GHSA-v4w8-49pv-mf72
Advisory Summary

CVE-2026-23842 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Chatterbot libraries in the PyPI ecosystem. The issue involves chatterbot vulnerable to denial of service via database connection pool exhaustion. Remediation is available by upgrading affected packages to version 1.2.11.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/chatterbot

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/chatterbot. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-v4w8-49pv-mf72 CVE-2026-23842 HIGH ChatterBot Vulnerable to Denial of Service via Database Connection Pool Exhaustion

CVE-2026-23842 at a Glance

CVE Identifier CVE-2026-23842
GHSA Identifier GHSA-v4w8-49pv-mf72
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Chatterbot
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-23842

To remediate this vulnerability, upgrade all affected Chatterbot dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

chatterbot fixed: 1.2.11
pip install chatterbot>=1.2.11
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show chatterbot

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-23842, inspect your installed packages using pip:

pip show chatterbot

Analyze the terminal output to locate any version of Chatterbot in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.11), your application is affected.

Note: The pip show chatterbot command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Chatterbot, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary ChatterBot versions up to 1.2.10 are vulnerable to a denial-of-service condition caused by improper database session and connection pool management. Concurrent invocations of the get_response() method can exhaust the underlying SQLAlchemy connection pool, resulting in persistent service unavailability and requiring a manual restart to recover. ### Details ChatterBot relies on SQLAlchemy for database access and uses a connection pool with default limits. The get_response() method does not enforce concurrency limits, rate limiting, or explicit session lifecycle controls. When multiple threads concurrently invoke get_response(), database connections are rapidly consumed and not released in a timely manner. This leads to exhaustion of the SQLAlchemy QueuePool, causing subsequent requests to block and eventually fail with a TimeoutError. This issue can be triggered without authentication in deployments where ChatterBot is exposed as a chatbot service, making it exploitable by remote attackers to cause denial of service. PoC Video: https://github.com/user-attachments/assets/4ee845c4-b847-4854-84ec-4b2fb2f7090f ### PoC 1. Install ChatterBot version 1.2.10. 2. Use the default database configuration (SQLite / SQLAlchemy). 3. Run the following Python script to invoke concurrent requests: from chatterbot import ChatBot import threading bot = ChatBot("dos-test") def attack(): bot.get_response("hello") threads = [] for _ in range(30): t = threading.Thread(target=attack) t.start() threads.append(t) for t in threads: t.join() 4. Observe that the application becomes unresponsive and raises SQLAlchemy TimeoutError exceptions indicating exhaustion of the connection pool. ### Impact This vulnerability allows an attacker to trigger a denial-of-service condition by exhausting the database connection pool. Once triggered, the chatbot becomes unresponsive to legitimate users and requires a manual restart to restore functionality. All deployments of ChatterBot version 1.2.10 or earlier that allow concurrent access to the get_response() method are impacted.

CVE-2026-23842 Affected Chatterbot Versions

1 component(s)
Fixed Versions:
1.2.11
Product / Package Ecosystem Affected Versions Fixed Version
chatterbot
PyPI
< 1.2.11
1.2.11

References

Frequently Asked Questions

What is CVE-2026-23842?
CVE-2026-23842 is a security vulnerability in Chatterbot involving ChatterBot Vulnerable to Denial of Service via Database Connection Pool Exhaustion under CWE-400: Uncontrolled Resource Consumption.
Which Chatterbot versions are affected?
Affected versions include releases prior to 1.2.11 across affected packages: chatterbot.
What version fixes CVE-2026-23842?
Upgrading to 1.2.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is chatterbot affected?
Yes, chatterbot is affected in releases prior to 1.2.11. Upgrade your dependency to 1.2.11 or later.
What is the CVSS score of CVE-2026-23842?
CVE-2026-23842 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-23842?
CVE-2026-23842 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check PyPI dependencies for CVE-2026-23842?
Run the dependency tree command: 'pip show chatterbot'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-v4w8-49pv-mf72",
  "modified" : "2026-01-20T18:36:17Z",
  "published" : "2026-01-20T18:36:17Z",
  "aliases" : [ "CVE-2026-23842" ],
  "summary" : "ChatterBot Vulnerable to Denial of Service via Database Connection Pool Exhaustion",
  "details" : "### Summary\nChatterBot versions up to 1.2.10 are vulnerable to a denial-of-service condition caused by improper database session and connection pool management. Concurrent invocations of the get_response() method can exhaust the underlying SQLAlchemy connection pool, resulting in persistent service unavailability and requiring a manual restart to recover.\n\n### Details\nChatterBot relies on SQLAlchemy for database access and uses a connection pool with default limits. The get_response() method does not enforce concurrency limits, rate limiting, or explicit session lifecycle controls.\n\nWhen multiple threads concurrently invoke get_response(), database connections are rapidly consumed and not released in a timely manner. This leads to exhaustion of the SQLAlchemy QueuePool, causing subsequent requests to block and eventually fail with a TimeoutError.\n\nThis issue can be triggered without authentication in deployments where ChatterBot is exposed as a chatbot service, making it exploitable by remote attackers to cause denial of service.\n\nPoC Video: \nhttps://github.com/user-attachments/assets/4ee845c4-b847-4854-84ec-4b2fb2f7090f\n\n### PoC\n1. Install ChatterBot version 1.2.10.\n2. Use the default database configuration (SQLite / SQLAlchemy).\n3. Run the following Python script to invoke concurrent requests:\n\nfrom chatterbot import ChatBot\nimport threading\n\nbot = ChatBot(\"dos-test\")\n\ndef attack():\n    bot.get_response(\"hello\")\n\nthreads = []\nfor _ in range(30):\n    t = threading.Thread(target=attack)\n    t.start()\n    threads.append(t)\n\nfor t in threads:\n    t.join()\n\n4. Observe that the application becomes unresponsive and raises SQLAlchemy TimeoutError exceptions indicating exhaustion of the connection pool.\n\n### Impact\nThis vulnerability allows an attacker to trigger a denial-of-service condition by exhausting the database connection pool. Once triggered, the chatbot becomes unresponsive to legitimate users and requires a manual restart to restore functionality.\n\nAll deployments of ChatterBot version 1.2.10 or earlier that allow concurrent access to the get_response() method are impacted.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "chatterbot"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.11"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.2.10"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/gunthercox/ChatterBot/security/advisories/GHSA-v4w8-49pv-mf72"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-23842"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gunthercox/ChatterBot/pull/2432"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gunthercox/ChatterBot/commit/de89fe648139f8eeacc998ad4524fab291a378cf"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gunthercox/ChatterBot"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gunthercox/ChatterBot/releases/tag/1.2.11"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/user-attachments/assets/4ee845c4-b847-4854-84ec-4b2fb2f7090f"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-20T18:36:17Z",
    "nvd_published_at" : "2026-01-19T19:16:04Z"
  }
}