SCA: security update for check-jsonschema (GHSA-q6mv-284r-mp36)

medium Tenable Self-Hosted Container Security Plugin ID 417935

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- check-jsonschema is a CLI and set of pre-commit hooks for jsonschema validation. The default cache
strategy uses the basename of a remote schema as the name of the file in the cache, e.g.
`https://example.org/schema.json` will be stored as `schema.json`. This naming allows for conflicts. If an
attacker can get a user to run `check-jsonschema` against a malicious schema URL, e.g.,
`https://example.evil.org/schema.json`, they can insert their own schema into the cache and it will be
picked up and used instead of the appropriate schema. Such a cache confusion attack could be used to allow
data to pass validation which should have been rejected. This issue has been patched in version 0.30.0.
All users are advised to upgrade. A few workarounds exist: 1. Users can use `--no-cache` to disable
caching. 2. Users can use `--cache-filename` to select filenames for use in the cache, or to ensure that
other usages do not overwrite the cached schema. (Note: this flag is being deprecated as part of the
remediation effort.) 3. Users can explicitly download the schema before use as a local file, as in `curl
-LOs https://example.org/schema.json; check-jsonschema --schemafile ./schema.json` (CVE-2024-53848)

See Also

https://github.com/advisories/GHSA-q6mv-284r-mp36

Plugin Details

Severity: Medium

ID: 417935

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 6/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3.3

Percentile: 51.01

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 4.9

Temporal Score: 3.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:N/I:C/A:N

CVSS Score Source: CVE-2024-53848

CVSS v3

Risk Factor: High

Base Score: 7.1

Temporal Score: 6.2

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6.1

Threat Score: 2.1

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:H/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 12/2/2024

Vulnerability Publication Date: 11/29/2024

Reference Information

CVE: CVE-2024-53848

cwe: CWE-349