# MAL-2026-6248: Malicious code in jsonschema-viewer (PyPI)


- **Type:** Malicious package
- **Package:** `jsonschema-viewer` (PyPI)
- **Published:** 21 Jun 2026

## What is MAL-2026-6248?

MAL-2026-6248 is a malicious package in jsonschema-viewer, published on 21 Jun 2026. 

### Official description

The package's only function — main() in src/jsonschema_viewer/main.py, registered as the `jsonschema-viewer` console script — invokes os.system to fetch a shell script from http://49.232.169.67:8084/slt via curl or wget and pipes the response into `sh`. The fetch uses plaintext HTTP to a bare IP with no pinning, no hash verification, and an opaque payload, and bears no relationship to the package's advertised purpose ('A minimal jsonschema-viewer package'). Author metadata is the placeholder 'Your Name' with no email/URL and the README is a single empty sentence, consistent with a throwaway dropper package. Any developer who installs this package and runs the documented CLI executes arbitrary attacker-controlled code on their machine.

Package configures an entry point (command line) that executes a remote script. It then downloads a next stage malware, which acts as next dropper for a fileless malware.

---

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

Campaign: 2026-06-jsonschema-viewer

Reasons (based on the campaign):

 - malware

 - Downloads and executes a remote executable.

 - Downloads and executes a remote malicious script.

## What should I do about MAL-2026-6248?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-6248 is a malicious package: jsonschema-viewer (PyPI). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-6248/ (Markdown: https://insights.sbomify.com/MAL-2026-6248/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-6248

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-6248/
Summaries are generated and may contain mistakes; the official description above is the record.
