Skip to content

MAL-2026-6945 Malicious code in jsonschemavalidation (PyPI)

Unknown
Published
Updated
Exploit status
No public exploit known

Description


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (eae82aa94c358f1f00f8a12e8b583cee82efdcf09d2f80263e6851ac0fec98f3)

The PyPI project jsonschemavalidation builds a wheel whose installed top-level package is literally jsonschema ([tool.hatch.build.targets.wheel] packages = ["src/jsonschema"]). Project metadata (author name, homepage pointing at github.com/python-jsonschema/jsonschema, README, description) mirrors the legitimate upstream jsonschema project. Installing this distribution places files into the real jsonschema import namespace on the installer, so import jsonschema in downstream code would resolve to the code shipped by this distribution rather than the genuine one. The current 4.26.0 contents appear to be an unmodified copy of upstream and no exfiltration, install-time fetch-and-execute, credential harvesting, silent-relay, backdoor, or other installer-harm payload is present in this version. The concern is the namespace-collision channel itself: a name-confusion distribution that populates a widely-used import name is a plausible squat/hijack setup, but name-similarity and namespace collision alone are subjective signals without a payload, so human review is appropriate rather than an automatic block.

Source: kam193 (b7a6e1ff837eac0382559815111106e3e85b3825b72f38355551d5874cc24b0e)

A clone of a legitimate package with an embeded reverse shell. In the published version, the reverse shell was connecting to a private IP address suggesting the package was not yet fully weaponized.


Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-07-jsonschemavalidation

Reasons (based on the campaign):

  • The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine.

  • clones-real-package

  • obfuscation

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
pypi jsonschemavalidation(PyPI) = 4.26.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi jsonschemavalidation(PyPI) = 4.26.0 No fix listed

References