mediumVulnerability

GHSA-2vhw-q7vh-7xv2

### Summary The `/ready` endpoint in `openssl_encrypt_server/server.py` at **lines 159-175** catches database errors and returns the full exception string in the response. ### Affected Code ```python except Exception as e: return {"status": "not_ready", "reason": str(e)} ``` ### Impact Database exception messages can leak: - Database hostnames and IP addresses - Connection parameters and port numbers - Driver version information - Potentially database credentials if included in connection string errors This information is available to unauthenticated callers. ### Recommended Fix - Return a generic error message: `{"status": "not_ready", "reason": "database unavailable"}` - Log the full exception server-side for debugging ### Fix Fixed in commit `7aa8787` on branch `releases/1.4.x` — replaced str(e) with generic "database check failed" message; full exception logged server-side at WARNING level.

Properties

ghsa_id
GHSA-2vhw-q7vh-7xv2
severity
medium
summary
openssl-encrypt's readiness endpoint leaks database error details to unauthenticated callers
cve_id
GHSA-2vhw-q7vh-7xv2
is_ghsa_only
true
ghsa_published
2026-04-01T21:11:59Z
source_url
https://github.com/advisories/GHSA-2vhw-q7vh-7xv2
ghsa_updated
2026-04-01T21:11:59Z

Related Entities (3)

REPORTED_BY (1)

[Source]GitHub Advisory Database

AFFECTS (1)

[Software]pip/openssl-encrypt

HAS_WEAKNESS (1)

[Weakness]Insertion of Sensitive Information Into Sent Data

Explore deeper with Ninja Signal's threat intelligence graph