
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.
@foursquare/foursquare-places
Advanced tools
framework agnostic javascript wrapper for foursquare's APIs
yarn or npm yarn test
please test any functions added and put the tests in the /tests folder
Here is a simple react application:
npx create-react-app mr-jitters
cd mr-jitters
npm install -i @foursquare/foursquare-places
REACT_APP_CLIENT_ID=InsertClientId
REACT_APP_CLIENT_SECRET=InsertClientSecret
# env
.env
import React, { useState, useEffect } from "react";
import Foursquare from "@foursquare/foursquare-places";
// need to create an .env file - see instructions in link
// https://stackoverflow.com/questions/48699820/how-do-i-hide-api-key-in-create-react-app
const CLIENT_ID = process.env.REACT_APP_CLIENT_ID;
const CLIENT_SECRET = process.env.REACT_APP_CLIENT_SECRET;
const foursquare = new Foursquare(CLIENT_ID, CLIENT_SECRET);
const App = () => {
const [items, setItems] = useState([]);
const [params, setParams] = useState({
ll: "37.7749,-122.4194",
query: "Blue Bottle"
});
useEffect(() => {
foursquare.venues.getVenues(params).then(res => {
setItems(res.response.venues);
});
}, [params]);
return (
<div>
<div>Items:</div>
{items.map(({ id, name }) => (
<div key={id}>{name}</div>
))}
</div>
);
};
export default App;
npm start
FAQs
This is a javascript wrapper for Foursquare's APIs
We found that @foursquare/foursquare-places demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.