openssl-encrypt
Affected
- introduced
0, fixed1.4.0(ecosystem)
Fixed versions
1.4.0
Fix
- Fixed version
1.4.0pip install --upgrade openssl-encrypt==1.4.0
Advisory
Also known as: CVE-2026-74875, PYSEC-2026-3755
openssl-encrypt silently skips schema validation when jsonschema library is not installed
Summary
In openssl_encrypt/modules/json_validator.py at lines 234-238, when the jsonschema library is not installed, all schema validation is silently skipped with only a print warning.
Affected Code
if not JSONSCHEMA_AVAILABLE:
print(f"Warning: Cannot validate against schema '{schema_name}' - jsonschema library not available")
return
Additionally, unknown metadata format versions (line 288-293) bypass schema validation entirely, and all schemas use additionalProperties: true allowing arbitrary extra fields.
Impact
An attacker who can influence the Python environment (remove the jsonschema package) or craft metadata with an unknown version number can bypass all schema checks. Malformed or malicious metadata will be accepted without validation.
Recommended Fix
jsonschema a required dependency, not optionaladditionalProperties: false in schemasFix
Fixed in commit 6e7f938 on branch releases/1.4.x — validate_against_schema() now raises JSONValidationError when jsonschema is unavailable instead of silently passing; changed print() warning to logging.warning().
Medium Basis: The source's own band: MODERATE
0, fixed 1.4.0 (ecosystem)1.4.0
1.4.0pip install --upgrade openssl-encrypt==1.4.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0