{"id":"CVE-2026-74875","aliases":["GHSA-425g-fjhq-5h92"],"title":"openssl-encrypt silently skips schema validation when jsonschema library is not installed","summary":"openssl-encrypt silently skips schema validation when jsonschema library is not installed","severity":"medium","vendor":"openssl-encrypt","product":"openssl-encrypt","ecosystem":"pip","affected":["openssl-encrypt < 1.4.0"],"patched":["openssl-encrypt 1.4.0"],"published":"2026-03-31","updated":"2026-08-18","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-425g-fjhq-5h92","references":[{"url":"https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-425g-fjhq-5h92"},{"url":"https://github.com/jahlives/openssl_encrypt/commit/6e7f938dcb7928faf5fd12bb5559f6dae2944124"},{"url":"https://github.com/jahlives/openssl_encrypt"}],"tags":["osv","pip"],"ingestedAt":"2026-08-18T12:28:08.109Z","epss":0.00274,"epssPercentile":0.17548,"slug":"CVE-2026-74875","body":"## Overview\n\n### Summary\n\nIn `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.\n\n### Affected Code\n\n```python\nif not JSONSCHEMA_AVAILABLE:\n    print(f\"Warning: Cannot validate against schema '{schema_name}' - jsonschema library not available\")\n    return\n```\n\nAdditionally, unknown metadata format versions (line 288-293) bypass schema validation entirely, and all schemas use `additionalProperties: true` allowing arbitrary extra fields.\n\n### Impact\n\nAn 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.\n\n### Recommended Fix\n\n- Make `jsonschema` a required dependency, not optional\n- Or fail-closed: refuse to process metadata when validation cannot be performed\n- Reject unknown format versions instead of silently skipping validation\n- Consider using `additionalProperties: false` in schemas\n\n### Fix\n\nFixed 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().\n\n## Affected packages\n\n- `openssl-encrypt < 1.4.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `openssl-encrypt 1.4.0`","depth":"sunlit","depthScore":28,"depthScoreParts":{"impact":27.5,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}