[go: up one dir, main page]

Incomplete List of Disallowed Inputs Affecting cpython package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-CPYTHON-15091538
  • published25 Jan 2026
  • disclosed21 Jan 2026
  • creditUnknown

Introduced: 21 Jan 2026

NewCVE-2025-12781  (opens in a new tab)
CWE-184  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Incomplete List of Disallowed Inputs in the b64decode, standard_b64decode, and urlsafe_b64decode functions when the altchars parameter is used. An attacker can cause logical errors or compromise data integrity by submitting input containing the '+' and '/' characters, which are incorrectly accepted even when an alternative alphabet is specified.

Note: This is only exploitable if the application uses the base64 functions with an alternative alphabet via the altchars parameter and relies on these functions for input validation without additional checks.

Workaround

This vulnerability can be mitigated by implementing manual input validation before calling the base64 functions with an alternative alphabet, ensuring to reject any string containing the standard base64 characters, such as '+' and '/', that are not part of the expected alphabet.

CVSS Base Scores

version 4.0
version 3.1