
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@financial-times/dotcom-middleware-app-context
Advanced tools
This package provides an [Express] compatible middleware which appends an instance of [app context] to each request and configures it with details automatically inferred from the running application.
This package provides an Express compatible middleware which appends an instance of app context to each request and configures it with details automatically inferred from the running application.
This package is compatible with Node 12+ and is distributed on npm.
npm install --save @financial-times/dotcom-middleware-app-context
After installing the package create a new instance of the middleware and register it with your application. The middleware can be configured with several options:
const express = require('express')
const app = express()
+const appContext = require('@financial-times/dotcom-middleware-app-context')
+app.use(appContext.init())
Once registered an appContext property will be added to the response locals:
app.get('/', (request, response) => {
const appContextData = response.locals.appContext.getAll()
})
See the app context package documentation for more information.
The middleware accepts the following parameters:
appContextAn app context data object, see the app context schema for more information. This can be used to append extra properties or override any of the properties automatically inferred from the running application.
FAQs
This package provides an [Express] compatible middleware which appends an instance of [app context] to each request and configures it with details automatically inferred from the running application.
The npm package @financial-times/dotcom-middleware-app-context receives a total of 642 weekly downloads. As such, @financial-times/dotcom-middleware-app-context popularity was classified as not popular.
We found that @financial-times/dotcom-middleware-app-context demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 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
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.