MAL-2026-6969

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-json-pwa/MAL-2026-6969.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6969
Aliases
  • GHSA-3f72-wf55-pqjc
Published
2026-07-08T08:21:06Z
Modified
2026-07-08T21:46:52.878455882Z
Summary
Malicious code in vite-json-pwa (npm)
Details

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

Source: amazon-inspector (08b3a45c4ee8248fa8a7a4fbf117192aefce7a29d4575b4b498e7271878ab035)

vite-json-pwa@1.1.2 impersonates the popular vite-plugin-pwa (mirroring its VitePWA/cachePreset/configField API surface) and injects a remote code loader into the plugin's runtime path. The exported configField API invokes getUseropt, which uses childprocess.spawn to launch a detached node process running dist/client/dev/reactopt.js with stdio:'ignore' and child.unref(), hiding output and outliving the parent. reactopt.js performs an HTTP GET to https://www.jsonkeeper.com/b/TUJAY (an anonymous, author-mutable paste host disguised behind variable names DEVAPIKEY / DEVSECRET_KEY and a shadow process.env object), takes the returned string body, wraps it in new Function('require', s), and invokes it with the host's require — giving attacker-controlled JavaScript full Node privileges on the developer/build machine. The reactopt.js name and client/dev/ path are cover-story camouflage; a Vite plugin has no legitimate reason to fork a hidden detached node child that eval's remote paste-bin content. Any consumer whose Vite config invokes the plugin's configField will pull and execute whatever JavaScript the attacker currently hosts at jsonkeeper.com/b/TUJAY.

Source: ghsa-malware (da660f2033a7177d94363a6e8df210ba23bb1fde45059eb74722d3dec56f0094)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "malicious-packages-origins": [
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "id": "GHSA-3f72-wf55-pqjc",
            "source": "ghsa-malware",
            "import_time": "2026-07-08T09:08:02.564462496Z",
            "sha256": "da660f2033a7177d94363a6e8df210ba23bb1fde45059eb74722d3dec56f0094",
            "modified_time": "2026-07-08T08:21:07Z"
        },
        {
            "modified_time": "2026-07-08T20:34:39Z",
            "id": "IN-MAL-2026-008601",
            "source": "amazon-inspector",
            "import_time": "2026-07-08T21:27:49.524113522Z",
            "sha256": "08b3a45c4ee8248fa8a7a4fbf117192aefce7a29d4575b4b498e7271878ab035",
            "versions": [
                "1.1.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / vite-json-pwa

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.1.2

Database specific

indicators
{
    "evidence_files": [
        {
            "path": "dist/client/dev/reactopt.js",
            "tlsh": "8921354f747ca0a8017013f5a72fe426f965643f340190d9739c87a21f3655d6282fde",
            "sha256": "8d372f8cb4d11a0d4d1afeb3be0c734c9582f0588e142d04bec1337005fac507"
        },
        {
            "path": "dist/index.js",
            "tlsh": "c473c81518f65623069375a8952f60177278d3035809ed61bbac93e43f8b67ce2f3af8",
            "sha256": "8e1399003f01a28c5c60c6bdc4db532d044886c258ee433b12ee71c6372d9fb9"
        },
        {
            "path": "package.json",
            "tlsh": "76a1cc26c8a14ce319c03569ac6d4687e039954bcd96fd1473cc422d0f8e6af61be77e",
            "sha256": "91e04252103fcc06afbe6a0eab305b499795757844674cf9417ab638e02cea48"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-json-pwa/MAL-2026-6969.json"
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]