
Research
Malicious npm Package Brand-Squats TanStack to Exfiltrate Environment Variables
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.
runewidth provides functions to get fixed width of the character or string.
This is a fork of https://github.com/mattn/go-runewidth, updated to the newest
Unicode. It also removes various helper functions, so all that remains is just
the runewidth.RuneWidth() function:
runewidth.RuneWidth('a')
runewidth.RuneWidth('ă¤')
runewidth.RuneWidth('đ¤ˇ')
Note this can NOT be used to get the width of the string:
// Broken! Do not do this.
l := 0
for _, r := range str {
l += runewidth.RuneWidth(r)
}
Use https://github.com/arp242/termtext or https://github.com/rivo/uniseg for getting the width of a string.
This is mostly useful in conjunction with the uniseg package, as used in termtext.
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.