MAL-2026-6571Malicious code in react-wp-viewer (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
0.2.15 | unavailable | — | — | — |
0.2.4 | unavailable | — | — | — |
0.2.99 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | react-wp-viewer | * |
| npm | react-wp-viewer | 0.2.15 |
| npm | react-wp-viewer | 0.2.4 |
| npm | react-wp-viewer | 0.2.99 |
{"schema_version":"1.7.4","id":"MAL-2026-6571","published":"2026-06-29T04:17:26Z","modified":"2026-08-21T12:28:12.538638567Z","aliases":["GHSA-566x-g457-qg8g"],"summary":"Malicious code in react-wp-viewer (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (443f37b7957fe3f1d4dd836b3a0e6eeddb513e334700e0c0a4616570071c13d8)\nreact-wp-viewer 0.2.4 is a dependency-confusion package. Its postinstall hook performs an HTTP GET to a hardcoded bare-IP endpoint at http://130.49.177.51:18080/p/dc-20260627-yandex-geobase carrying the package name, version, and a fixed nonce. The package self-identifies as a dependency-confusion proof-of-concept (`__dependency_confusion_poc__: true`) and the URL path encodes a campaign identifier referencing an internal package namespace, indicating the public name is being squatted to win resolution against an identically-named private/internal package. Any build that resolves `react-wp-viewer` from the public registry will silently execute the postinstall beacon, disclosing the installer's source IP, hostname-derived network position, and the fact that this internal name resolves within their environment, to an attacker-controlled host over plain HTTP. No installer credentials are read in the traced code, but the install-time callout to an attacker-controlled IP is the dependency-confusion attack pattern and provides material reconnaissance value to the operator.\n\n## Source: ghsa-malware (dae245d908c5e9ae1001f2590c5d362fa1f21e148cdf565487424fabdad44700)\nAny 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.\n","affected":[{"package":{"name":"react-wp-viewer","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.2.15","0.2.4","0.2.99"],"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"postinstall.js","sha256":"4511fad6b3a02db6a7d6ceffff5f43aff822a423a273336b0dfb0aa02c28bade","tlsh":"60f05cb856f580782ded41c9f3d1b85f95cee241f1557480ed9217d123d369326b26b0"},{"path":"package.json","sha256":"4f315412d4445d69898f3f3f6c1216cf13ffba2c1b1cf45a9711f38890d02e1d","tlsh":"7ce07d185821a73328c04a971577550694706d0b0108790c03e78838d3ce663c2be20f"}],"package_integrity":[{"filename":"react-wp-viewer-0.2.15.tgz","hashes":{"sha1":"2c07f5333e631d27ff6b7aa942dcd1f3605087aa","sha512_sri":"sha512-oGM3xkjQzReHwrsEy9hoHOaIdmo7Ga1Gb73CIu5nAPiASgvr3pKZ0wso5zb7HusX40p2YWECxnDjKT5thV3lHQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-wp-viewer/v/0.2.15"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-wp-viewer/v/0.2.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-wp-viewer/v/0.2.99"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-566x-g457-qg8g"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007713","import_time":"2026-06-29T05:07:05.765202301Z","modified_time":"2026-06-29T04:17:26Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"08fd73c12a730e8dfbaa5bf21aa086a0a3de88241fbd6d880a20805838929572","source":"amazon-inspector","versions":["0.2.15"]},{"id":"IN-MAL-2026-007715","import_time":"2026-06-29T05:07:06.066562413Z","modified_time":"2026-06-29T04:17:42Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"443f37b7957fe3f1d4dd836b3a0e6eeddb513e334700e0c0a4616570071c13d8","source":"amazon-inspector","versions":["0.2.4"]},{"id":"IN-MAL-2026-007714","import_time":"2026-06-29T05:07:05.929844066Z","modified_time":"2026-06-29T04:17:35Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"5b9202fdee16d26d0f7484f7f9a0d2d264b38ad3200b396ef483cc2439225360","source":"amazon-inspector","versions":["0.2.99"]},{"id":"GHSA-566x-g457-qg8g","import_time":"2026-08-21T12:26:03.440499087Z","modified_time":"2026-08-21T11:53:39Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"dae245d908c5e9ae1001f2590c5d362fa1f21e148cdf565487424fabdad44700","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0