
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.
✨ A simple but powerful dot-notation prop path util
with npm or yarn or any other package manager you prefer
yarn add glfe
// npm i glfe
glfe with 'script' tag derectly:<script src="path/to/glfe"></script>
<script>
var glfe = window.glfe
glfe.get(...)
glfe.find(...)
glfe.set(...)
</script>
import glfe from "glfe"
var obj = {
a: {
b: {
c: [{
d: [ {
e: 5
}]
}],
f: 6
}
}
}
console.log(glfe.get(obj, "a.b.c[0].d[0].e"))
console.log(glfe.get(obj, "a.b.f"))
console.log(glfe.get(obj, "a[b]"))
console.log(glfe.get(obj, "not.exist.prop")) // throw error
console.log(glfe.find(obj, "not.exist.prop")) // undefined
// you can use "!" flag to tell `glfe` to make an array instead of an object
var seter = glfe.set(obj, "a[b][r!][2]", 66)
console.log(seter)
console.log(obj)
console.log(obj===seter) // true
Get prop value with dot-notation from target object. It would throw error when the prop path is not exist, if you want to avoid it please use find instead of get
Same as get except it would return undefined when the prop path is not exist, if you want to avoid it please use get instead of find
set prop value with dot-notation paths
propPath: dot-notation paths, such as "a.b", "a[b]", "a.b[0].c", but "a.b.[0].c" is not supported!targetshould be a plain object, array is not supported!
MIT
FAQs
A simple but powerful dot-notation prop path util
We found that glfe demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.