Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

react-photo-viewsnpm

react-photo-views is a confirmed malicious npm package (MAL-2026-5634) that typosquats a legitimate package to trick installs (malicious version 1.0.1). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in react-photo-views (npm)

MAL-2026-5634
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall react-photo-views

What this malware does

Package name 'react-photo-views' (plural) impersonates the popular 'react-photo-view' (singular) component — README badges, downloads URLs, and documentation links in this package all point to the legitimate singular-name package and its docs at react-photo-view.vercel.app. The dist builds (dist/react-photo-view.js and the esm/modern variants) append a top-level IIFE that descrambles two large opaque string literals using a deterministic Fisher-Yates-style PRNG seeded with 2540575, looks up an 11-character property on the descrambler function (length of 'constructor', i.e. the Function constructor), and invokes the resulting function on further descrambled data with argument 7942. Before the call, require and module are stashed on the global object (global.r=require, global._V="A6-253-331"), which hands the runtime-constructed code full module-loader access. Any consumer who require()s or imports this package immediately executes attacker-supplied code that was never visible to static review. The same payload is duplicated across cjs, esm and modern builds and is appended after legitimate photo-viewer code, consistent with a dropper injected into a copy of the real package's source.

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.

Malicious versions

1 flagged
1.0.1

Indicators of compromise (SHA-256)

a99fbc6cc42b7ec545aaa5d9ade01d00d4a22c4c35fc241681eab542599503df
71f60b099dad98ec8dc302081d7f3ed6d8c6a4e89ac29d3c6e9ff8f0f2290cc0
b0a47353c6255d7edb625c7ea890545e106900caeae477f0ebff432ae39c53e5

Detection & response playbook

Typosquat
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for react-photo-views (version 1.0.1). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging react-photo-views across your stack and pipelines.

  2. If you installed it — respond

    react-photo-views is a typosquat — you almost certainly intended a legitimately-named package. Remove react-photo-views, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.

  3. Did it already run?

    If react-photo-views was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks react-photo-views before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. react-photo-views on npm has been identified as a malicious package (version 1.0.1 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-f2m2-w8gp-rjgqIN-MAL-2026-006198IN-MAL-2026-006197

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks react-photo-views-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

react-photo-views (npm) malicious package — MAL-2026-5634 | O3 Security