Vulnerabilities in pkg:pypi/openssl-encrypt
PACKAGEGHSA-c65f-x25w-62jv is a MODERATE openssl-encrypt has cors wildcard with vulnerability (CWE-863: Incorrect Authorization) affecting Openssl encrypt libraries in the PyPI ecosystem. The issue involves openssl-encrypt has cors wildcard with allow_credentials=true in standalone servers. Remediation is available by upgrading affected packages to version 1.4.0.
pkg:pypi/openssl-encrypt
Vulnerability advisories affecting package pkg:pypi/openssl-encrypt. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-c65f-x25w-62jv | - | MODERATE | openssl-encrypt has CORS wildcard with allow_credentials=True in standalone servers |
| GHSA-4rh7-jwg9-m28m | - | MODERATE | openssl-encrypt accepts refresh tokens as URL query parameters causing token leakage |
| GHSA-2vhw-q7vh-7xv2 | - | MODERATE | openssl-encrypt's readiness endpoint leaks database error details to unauthenticated callers |
| GHSA-hvc7-763r-4f3h | - | MODERATE | openssl-encrypt has no owner verification on key revocation — any client can revoke any key |
| GHSA-8h88-gxp3-j7pg | - | MODERATE | openssl-encrypt's unverified key bundle from_dict() + to_identity() path allows encryption to attacker keys |
| GHSA-425g-fjhq-5h92 | - | MODERATE | openssl-encrypt silently skips schema validation when jsonschema library is not installed |
| GHSA-vfgx-5q85-58q3 | - | MODERATE | openssl-encrypt has non-cryptographic PRNG used for steganography pixel selection |
| GHSA-h3m5-p59h-x88p | - | MODERATE | openssl-encrypt has visible password in process list via --password CLI argument |
| GHSA-h45m-mgcp-q388 | - | CRITICAL | openssl-encrypt: TOTP rate limiter is in-memory only — not shared across workers, lost on restart |
| GHSA-j48q-4c78-rhf9 | - | MODERATE | openssl-encrypt: Dynamic .so loading for Whirlpool uses broad glob pattern without integrity verification |
GHSA-c65f-x25w-62jv at a Glance
How to Fix GHSA-c65f-x25w-62jv
To remediate this vulnerability, upgrade all affected Openssl encrypt dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install openssl-encrypt>=1.4.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show openssl-encrypt
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-c65f-x25w-62jv, inspect your installed packages using pip:
pip show openssl-encrypt
Analyze the terminal output to locate any version of Openssl encrypt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.0), your application is affected.
Note: The pip show openssl-encrypt command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Openssl encrypt, 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
GHSA-c65f-x25w-62jv Affected Openssl encrypt Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
openssl-encrypt
|
PyPI |
< 1.4.0
|
1.4.0
|
References
Frequently Asked Questions
What is GHSA-c65f-x25w-62jv?
Which Openssl encrypt versions are affected?
What version fixes GHSA-c65f-x25w-62jv?
Is openssl-encrypt affected?
What CWE is associated with GHSA-c65f-x25w-62jv?
How can I check PyPI dependencies for GHSA-c65f-x25w-62jv?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c65f-x25w-62jv",
"modified" : "2026-04-01T21:12:37Z",
"published" : "2026-04-01T21:12:37Z",
"aliases" : [ ],
"summary" : "openssl-encrypt has CORS wildcard with allow_credentials=True in standalone servers",
"details" : "### Summary\n\nBoth standalone servers configure CORS with `allow_origins=[\"*\"]`, `allow_credentials=True`, `allow_methods=[\"*\"]`, and `allow_headers=[\"*\"]`.\n\n### Affected Code\n\n```python\n# server/key-server/app/main.py:86-92\n# server/telemetry-server/app/main.py:23-29\napp.add_middleware(\n CORSMiddleware,\n allow_origins=settings.cors_origins, # defaults to [\"*\"]\n allow_credentials=True,\n allow_methods=[\"*\"],\n allow_headers=[\"*\"],\n)\n```\n\nThe docker-compose file (`openssl_encrypt_server/docker-compose.yml:75`) also defaults `CORS_ORIGINS` to `*`, and `.env.example` ships with `CORS_ORIGINS=*`.\n\n### Impact\n\nThis is the most permissive CORS configuration possible, allowing any website to make fully credentialed cross-origin requests to the API. An attacker's website could make authenticated API calls on behalf of any user who visits it.\n\n### Recommended Fix\n\n- Remove wildcard defaults — require explicit origin configuration\n- Never combine `allow_origins=[\"*\"]` with `allow_credentials=True`\n- Update `.env.example` with placeholder domains instead of `*`\n\n### Fix\n\nFixed in commit `809416b` on branch `releases/1.4.x` — changed CORS default from [\"*\"] to [] in both key-server and telemetry-server; added validation rejecting wildcard when debug=False.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "openssl-encrypt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-c65f-x25w-62jv"
}, {
"type" : "WEB",
"url" : "https://github.com/jahlives/openssl_encrypt/commit/809416b74d2749cdcffb484cd65b057e1685cc13"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jahlives/openssl_encrypt"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-01T21:12:37Z",
"nvd_published_at" : null
}
}