Malicious code in bootstrap-custom-ui (npm)
The npm package bootstrap-custom-ui contains malicious code in its default export that performs an HTTPS request to a hardcoded IP endpoint and executes arbitrary code via the Function constructor. The package masquerades as a React/Bootstrap UI component library but grants remote code execution to an attacker-controlled server.
- Disclosed
- Last updated
- Blast radius
- Any application that imports and invokes the default export of bootstrap-custom-ui
- Ecosystems
- Attack vectors
- Affected entities
- bootstrap-custom-uinpm package with malicious default export
The npm package bootstrap-custom-ui was found to contain malicious code that contradicts its advertised purpose as a React/Bootstrap UI component library. The package's default export, getPlugin, performs an HTTPS request to a hardcoded bare-IP endpoint at https://31.97.137.157:45000/icons/108 and passes the response's credits field to the Function constructor with full Node.js context (require, module, exports, process, Buffer).
Any caller invoking the exported function grants the remote server arbitrary code execution on the host. The destination URL is assembled from split string fragments (protocol, separator, domain, path, token) to obfuscate the real bare-IP destination. A decoy setDefaultModule function references legitimate CDN names (cloudflare, fastly, akamai, cloudfront) that are never actually used, further camouflaging the malicious behavior.
This incident was identified by the OpenSSF's malicious-packages project and reported through GitHub's advisory system (GHSA-3wx4-394v-mr9j).
Indicators of compromise
- Packages
- bootstrap-custom-ui
- IPs
- 31.97.137.157
Remediation
- Remove bootstrap-custom-ui from all projects immediately
- Audit all applications that imported bootstrap-custom-ui for signs of compromise or unauthorized access
- Review logs for any outbound HTTPS connections to 31.97.137.157:45000
- Rotate credentials and secrets for any systems that may have been affected
- Use npm audit to identify if the package is present in dependency trees
- Replace with a legitimate Bootstrap/React UI component library from a trusted source
Sources
- GitHub Advisory GHSA-3wx4-394v-mr9j · GitHub Advisory Database
Cite this entry
"Malicious code in bootstrap-custom-ui (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 14, 2026; last updated August 14, 2026. https://supplychainattack.org/incident/malicious-code-in-bootstrap-custom-ui-npm-yvn9cl
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- resolvedcritical
Malware in ulebkit
The npm package ulebkit contained malware that provided full system compromise to attackers. Any computer with the package installed or running should be considered fully compromised.
npmCompromised package - activecritical
Malware in sui-move-graphql
Malware was discovered in the npm package sui-move-graphql. Systems with this package installed or running should be considered fully compromised, requiring immediate rotation of all secrets and keys from a different computer.
npmCompromised package - containedcritical
Malware in blastradar
Malware was discovered in the npm package blastradar, resulting in full system compromise for any computer with the package installed or running. All secrets and keys on affected systems should be rotated immediately from a different computer.
npmCompromised package - containedcritical
Malicious code in runtime-health (npm)
The npm package runtime-health version 1.0.2 was identified as malicious by the OpenSSF Package Analysis project. The package executes commands associated with malicious behavior.
npmCompromised package