Vulnerabilities in pkg:pypi/PyNaCl

PACKAGE
Advisory Identifier: GHSA-mrfv-m5wm-5w6w
Advisory Summary

CVE-2025-69277 is a MODERATE (CVSS 4.5) libsodium has incomplete list of vulnerability (CWE-184: Incomplete List of Disallowed Inputs) affecting PyNaCl libraries in the PyPI ecosystem. The issue involves libsodium has incomplete list of disallowed inputs. Remediation is available by upgrading affected packages to version 1.6.2, 3.6.1, 2.5.0, 1.24.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/PyNaCl

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-mrfv-m5wm-5w6w CVE-2025-69277 MODERATE libsodium has Incomplete List of Disallowed Inputs

CVE-2025-69277 at a Glance

CVE Identifier CVE-2025-69277
GHSA Identifier GHSA-mrfv-m5wm-5w6w
Severity MODERATE
CVSS v3.1 Base Score 4.5
CWE Classification CWE-184: Incomplete List of Disallowed Inputs
Affected Product PyNaCl
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.5

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

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

How to Fix CVE-2025-69277

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

PyNaCl fixed: 1.6.2
pip install PyNaCl>=1.6.2
hdwallet fixed: 3.6.1
pip install hdwallet>=3.6.1
paragonie/sodium_compat fixed: 2.5.0
Upgrade paragonie/sodium_compat to 2.5.0
paragonie/sodium_compat fixed: 1.24.0
Upgrade paragonie/sodium_compat to 1.24.0
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 PyNaCl

How to Check if You Are Affected

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

pip show PyNaCl

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-184: Incomplete List of Disallowed Inputs, where the product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete. In PyNaCl, 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

libsodium before ad3004e, in atypical use cases involving certain custom cryptography or untrusted data to crypto_core_ed25519_is_valid_point, mishandles checks for whether an elliptic curve point is valid because it sometimes allows points that aren't in the main cryptographic group. This advisoory lists packages in the GitHub Advisory Database's [supported ecosystems](https://github.com/github/advisory-database?tab=readme-ov-file#supported-ecosystems) that are affected by this vulnerability due to a vulnerable dependency.

CVE-2025-69277 Affected PyNaCl Versions

4 component(s)
Fixed Versions:
1.6.23.6.12.5.01.24.0
Product / Package Ecosystem Affected Versions Fixed Version
PyNaCl
PyPI
< 1.6.2
1.6.2
hdwallet
PyPI
< 3.6.1
3.6.1
paragonie/sodium_compat
Packagist
≥ 2
< 2.5.0
2.5.0
paragonie/sodium_compat
Packagist
< 1.24.0
1.24.0

References

Frequently Asked Questions

What is CVE-2025-69277?
CVE-2025-69277 is a security vulnerability in PyNaCl involving libsodium has Incomplete List of Disallowed Inputs under CWE-184: Incomplete List of Disallowed Inputs.
Which PyNaCl versions are affected?
Affected versions include releases prior to 1.6.2, 3.6.1, 2.5.0, 1.24.0 across affected packages: PyNaCl, hdwallet, paragonie/sodium_compat.
What version fixes CVE-2025-69277?
Upgrading to 1.6.2, 3.6.1, 2.5.0, 1.24.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is PyNaCl affected?
Yes, PyNaCl is affected in releases prior to 1.6.2. Upgrade your dependency to 1.6.2 or later.
Is hdwallet affected?
Yes, hdwallet is affected in releases prior to 3.6.1. Upgrade your dependency to 3.6.1 or later.
What is the CVSS score of CVE-2025-69277?
CVE-2025-69277 has a CVSS v3.1 base score of 4.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2025-69277?
CVE-2025-69277 is classified under CWE-184: Incomplete List of Disallowed Inputs (The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.).
How can I check PyPI dependencies for CVE-2025-69277?
Run the dependency tree command: 'pip show PyNaCl'. 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-mrfv-m5wm-5w6w",
  "modified" : "2026-01-07T18:30:24Z",
  "published" : "2025-12-31T06:30:18Z",
  "aliases" : [ "CVE-2025-69277" ],
  "summary" : "libsodium has Incomplete List of Disallowed Inputs",
  "details" : "libsodium before ad3004e, in atypical use cases involving certain custom cryptography or untrusted data to crypto_core_ed25519_is_valid_point, mishandles checks for whether an elliptic curve point is valid because it sometimes allows points that aren't in the main cryptographic group.\n\nThis advisoory lists packages in the GitHub Advisory Database's [supported ecosystems](https://github.com/github/advisory-database?tab=readme-ov-file#supported-ecosystems) that are affected by this vulnerability due to a vulnerable dependency.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "paragonie/sodium_compat"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2"
      }, {
        "fixed" : "2.5.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "paragonie/sodium_compat"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.24.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "PyNaCl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "hdwallet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.6.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-69277"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pyca/pynacl/issues/920"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hdwallet-io/python-hdwallet/pull/124"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jedisct1/libsodium/commit/ad3004ec8731730e93fcfbbc824e67eadc1c1bae"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/paragonie/sodium_compat/commit/2cb48f26130919f92f30650bdcc30e6f4ebe45ac"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/paragonie/sodium_compat/commit/4714da6efdc782c06690bc72ce34fae7941c2d9f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pyca/pynacl/commit/96314884d88d1089ff5f336dba61d7abbcddbbf7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pyca/pynacl/commit/ecf41f55a3d8f1e10ce89c61c4b4d67f3f4467cf"
  }, {
    "type" : "WEB",
    "url" : "https://00f.net/2025/12/30/libsodium-vulnerability"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/paragonie/sodium_compat/2025-12-30.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/paragonie/sodium_compat"
  }, {
    "type" : "WEB",
    "url" : "https://ianix.com/pub/ed25519-deployment.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2026/01/msg00004.html"
  }, {
    "type" : "WEB",
    "url" : "https://news.ycombinator.com/item?id=46435614"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-184" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-06T17:12:24Z",
    "nvd_published_at" : "2025-12-31T06:15:41Z"
  }
}