
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@mastra/evals
Advanced tools
Affected versions:
`@mastra/evals` ships a collection of scoring utilities you can run locally or inside your own evaluation pipelines. These scorers come in two flavors:
@mastra/evals ships a collection of scoring utilities you can run locally or inside your own evaluation pipelines. These scorers come in two flavors:
The scorers do not persist results or integrate with Mastra Storage; you decide where and how to record outcomes.
npm install @mastra/evals
import { createFaithfulnessScorer, createContentSimilarityScorer } from '@mastra/evals/scorers/prebuilt';
const faithfulness = createFaithfulnessScorer({
model: 'openai/gpt-4o-mini')
});
const similarity = createContentSimilarityScorer({ ignoreCase: true });
const answer = 'Paris is the capital of France.';
const context = ['Paris is the capital of France', 'France is in Europe'];
const faithfulnessScore = await faithfulness.score({ answer, context });
const similarityScore = similarity.score({
input: context[0],
output: answer
});
console.log({ faithfulnessScore, similarityScore });
FAQs
Unknown package
The npm package @mastra/evals receives a total of 122,295 weekly downloads. As such, @mastra/evals popularity was classified as popular.
We found that @mastra/evals demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.