MAL-2026-6945 Malicious code in jsonschemavalidation (PyPI)
- Package
- jsonschemavalidation
- Registry
- PyPI
What is MAL-2026-6945?
MAL-2026-6945 is a malicious package in jsonschemavalidation, published on 7 Jul 2026.
Official description
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.
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
What should I do about MAL-2026-6945?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.