MAL-2025-47196

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ng2-file-upload/MAL-2025-47196.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2025-47196
Aliases
  • GHSA-f3v2-259r-f6jc
Published
2025-09-15T13:17:00Z
Modified
2025-09-18T04:14:27Z
Summary
Malicious code in ng2-file-upload (npm)
Details

The package ng2-file-upload was found have been identified as potentially malicious due to the inclusion of a minified postinstall script. It is considered suspicious because: The script appears to attempt to steal access tokens for npm, GitHub, AWS, GCP, etc. There is no changelog or new tags in the GitHub repository associated with these releases. The packages were uploaded by a service account: https://www.npmjs.com/~ngxbs


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

Source: ghsa-malware (9284a0766c145b0df3804da9be8973efeb9e8d6cd5e497a1193d0c371f206e87)

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 (15ac793ec5247ccf9789c39dd4cba49f8206a6bd4b2b22ab6837d6e431bb3058)

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": [
        {
            "sha256": "9284a0766c145b0df3804da9be8973efeb9e8d6cd5e497a1193d0c371f206e87",
            "id": "GHSA-f3v2-259r-f6jc",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "modified_time": "2025-09-15T13:24:08Z",
            "import_time": "2025-09-16T00:34:25.620609452Z",
            "source": "ghsa-malware"
        },
        {
            "sha256": "5ff8030203613f8d645e72e865c302be3b0a3be70736d3c42b9e931af80d749a",
            "id": "GHSA-f3v2-259r-f6jc",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "8.0.1"
                        },
                        {
                            "last_affected": "8.0.3"
                        },
                        {
                            "introduced": "7.0.2"
                        },
                        {
                            "last_affected": "7.0.3"
                        }
                    ]
                }
            ],
            "modified_time": "2025-09-16T16:25:44Z",
            "versions": [
                "9.0.1"
            ],
            "source": "ghsa-malware",
            "import_time": "2025-09-17T00:07:09.300873754Z"
        },
        {
            "sha256": "e230155b1bcc4e7000c295f321f56e76c4a2da332fc1bd6ca8b725f3f7cfc6d0",
            "id": "GHSA-f3v2-259r-f6jc",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "8.0.1"
                        },
                        {
                            "last_affected": "8.0.3"
                        },
                        {
                            "introduced": "7.0.2"
                        },
                        {
                            "last_affected": "7.0.3"
                        }
                    ]
                }
            ],
            "modified_time": "2025-09-16T16:25:44Z",
            "versions": [
                "9.0.1"
            ],
            "source": "ghsa-malware",
            "import_time": "2025-09-17T00:34:59.144008325Z"
        },
        {
            "sha256": "15ac793ec5247ccf9789c39dd4cba49f8206a6bd4b2b22ab6837d6e431bb3058",
            "import_time": "2025-09-17T05:59:34.939495Z",
            "source": "google-open-source-security",
            "modified_time": "2025-09-17T05:58:45Z",
            "versions": [
                "8.0.3",
                "8.0.2",
                "9.0.1",
                "7.0.2",
                "8.0.1"
            ]
        },
        {
            "sha256": "d3cabc9927b50d5e3c70b87a301903be8bece98b56df3441b57a81322ba36813",
            "id": "GHSA-f3v2-259r-f6jc",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "8.0.1"
                        },
                        {
                            "last_affected": "8.0.3"
                        },
                        {
                            "introduced": "7.0.2"
                        },
                        {
                            "last_affected": "7.0.3"
                        }
                    ]
                }
            ],
            "modified_time": "2025-09-16T16:25:44Z",
            "versions": [
                "9.0.1"
            ],
            "source": "ghsa-malware",
            "import_time": "2025-09-18T04:13:59.109378437Z"
        }
    ]
}
References
Credits

Affected packages

npm / ng2-file-upload

Package

Affected ranges

Type
SEMVER
Events
Introduced
8.0.1
Last affected
8.0.3
Introduced
7.0.2
Last affected
7.0.3

Affected versions

7.*
7.0.2
7.0.3
8.*
8.0.1
8.0.2
8.0.3
9.*
9.0.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ng2-file-upload/MAL-2025-47196.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "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",
        "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"
    }
]