
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@permify/permify-express-middleware
Advanced tools
Expressjs Middleware for authorization check using the Permify API
Perform authorization check in your Express.js API endpoints using Permify
Use npm to install:
npm install @permify/permify-express-middleware
Use yarn to install:
yarn add @permify/permify-express-middleware
Call createMiddleware function with your coresponding keys to get a configured middleware function isAuthorized:
const Permify = require("@permify/permify-express-middleware");
const { isAuthorized } = Permify.createMiddleware({"workspace_id", "private_API_token"});
Once you've initialized the middleware as shown above, you can use isAuthorized middleware to protect your API routes.
PolicyName (mandatory)Custom Permify Policy name.
UserID (mandatory)Id of the User
ResourceID (optional)Id of the Resource, mandatory if any resource used or accessed when creating Rule.
ResourceType (optional)Type or name of the Resource, mandatory if any resource used or accessed when creating Rule.
// Example case: Is user has a access to see specific contact details or not.
// We pass optional params resource id and resource type
// because of the condition: is user contact itself (resource owner)
app.get(
"/api/contact/:contactId",
isAuthorized("contact-show", req.user.id, req.params.contactId, "contact"),
(req, res) => {
const { contactId } = req.params;
const contact = geContact(contactId);
if (!contact) {
res.sendStatus(404);
return;
}
res.json(contact);
}
);
FAQs
Expressjs Middleware for authorization check using the Permify API
The npm package @permify/permify-express-middleware receives a total of 0 weekly downloads. As such, @permify/permify-express-middleware popularity was classified as not popular.
We found that @permify/permify-express-middleware 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 supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.