@servicetitan/web-components
Framework to build, register, and load Microfrontends into host applications
This report shows the evidence for @servicetitan/web-components@38.1.4. 7 of 23 known versions are blocked or flagged. The newest version, 40.2.2, is allowed. See all versions.
AI Security Review
scanned 3mo ago · by lpm-firewall-aiThis is concrete malicious preinstall behavior: a web-components package downloads an interpreter to execute an unrelated obfuscated token-harvesting payload. The benign application runtime code does not mitigate the install-time attack.
Decision evidence
public snapshot- package.json runs `node setup.mjs` as preinstall.
- setup.mjs downloads Bun and executes math_init.js during installation.
- math_init.js is a 728KB obfuscated payload, unrelated to the component library.
- math_init.js enumerates `ghtoken`, `ghs_old`, and `ghs_jwt` credentials.
- math_init.js imports child_process and performs outbound fetch/upload logic.
- dist/ and src/ implement the stated web-component loader.
- No malicious behavior was found in the published runtime entrypoint dist/index.js.
Source & flagged code
5 flagged · loading sourcePackage defines install-time lifecycle scripts.
package.jsonView on unpkgPackage source references a known benign dynamic code generation pattern.
math_init.jsView on unpkg · L1Findings
Affected versions and remediation
This report applies to @servicetitan/web-components@38.1.4.
The versions list below shows the verdict for each recorded version.
- Avoid installing @servicetitan/web-components@38.1.4. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.