MAL-2025-47199

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ngx-toastr/MAL-2025-47199.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2025-47199
Aliases
  • GHSA-qp89-vf7f-22w4
Published
2025-09-15T23:52:36Z
Modified
2025-09-17T06:23:37Z
Summary
Malicious code in ngx-toastr (npm)
Details

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

Source: ghsa-malware (1774663df406fad902dc8413cbf9ac9df437d53215cfb394dd10122b768ebc9e)

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.

Source: google-open-source-security (eec1aa60c5bea3f9902aef4f14430fd4ea1bc8b5ce66671b994c7cdc9849ce58)

This package was compromised by the Shai-Hulud NPM worm. The malicious payload steals tokens and credentials and publishes them to GitHub before propogating itself to NPM packages the user owns.

Database specific
{
    "malicious-packages-origins": [
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "source": "ghsa-malware",
            "id": "GHSA-qp89-vf7f-22w4",
            "sha256": "1774663df406fad902dc8413cbf9ac9df437d53215cfb394dd10122b768ebc9e",
            "import_time": "2025-09-16T00:34:25.647102733Z",
            "modified_time": "2025-09-15T23:52:46Z"
        },
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "19.0.1"
                        },
                        {
                            "last_affected": "19.0.2"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "source": "ghsa-malware",
            "id": "GHSA-qp89-vf7f-22w4",
            "sha256": "7a95665277b716fc86917ad4010aa445781de46d07fca062a065bdf5f5c0c440",
            "import_time": "2025-09-17T00:07:09.372228296Z",
            "modified_time": "2025-09-16T01:10:40Z"
        },
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "19.0.1"
                        },
                        {
                            "last_affected": "19.0.2"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "source": "ghsa-malware",
            "id": "GHSA-qp89-vf7f-22w4",
            "sha256": "0b939c723b9ec70b0db95da29ecf1aeb489de7166406c5916d4c3a30b1858c2d",
            "import_time": "2025-09-17T00:34:59.233724567Z",
            "modified_time": "2025-09-16T01:10:40Z"
        },
        {
            "versions": [
                "19.0.2",
                "19.0.1"
            ],
            "source": "google-open-source-security",
            "sha256": "eec1aa60c5bea3f9902aef4f14430fd4ea1bc8b5ce66671b994c7cdc9849ce58",
            "import_time": "2025-09-17T05:59:34.335795Z",
            "modified_time": "2025-09-17T05:58:45Z"
        }
    ]
}
References

Affected packages

npm / ngx-toastr

Package

Affected ranges

Type
SEMVER
Events
Introduced
19.0.1
Last affected
19.0.2

Affected versions

19.*

19.0.1
19.0.2

Database specific

{
    "cwes": [
        {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
        },
        {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
        },
        {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
        }
    ]
}