Acceptance of Extraneous Untrusted Data With Trusted Data Affecting check-jsonschema package, versions [,0.30.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-CHECKJSONSCHEMA-8445277
  • published1 Dec 2024
  • disclosed29 Nov 2024
  • creditSeth Michael Larson

Introduced: 29 Nov 2024

NewCVE-2024-53848  (opens in a new tab)
CWE-349  (opens in a new tab)

How to fix?

Upgrade check-jsonschema to version 0.30.0 or higher.

Overview

check-jsonschema is an A jsonschema CLI and pre-commit hook

Affected versions of this package are vulnerable to Acceptance of Extraneous Untrusted Data With Trusted Data via the default caching mechanism for remote schemas. An attacker can manipulate the cache to insert a malicious schema, which will be used instead of the intended schema, potentially allowing invalid data to pass validation by directing a user to a malicious schema URL.

Workaround

This vulnerability can be mitigated by disabling caching with --no-cache, using --cache-filename to specify cache filenames, or by manually downloading the schema as a local file before use as in curl -LOs https://example.org/schema.json; check-jsonschema --schemafile ./schema.json

References

CVSS Scores

version 4.0
version 3.1