
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.
@astrojs/prism
Advanced tools
Supports Prism highlighting in Astro projects
This package exports a component to support highlighting inside an Astro file. Example:
---
import { Prism } from '@astrojs/prism';
---
<Prism lang="js" code={`const foo = 'bar';`} />
This package exports a runHighlighterWithAstro function to highlight while making sure the Astro language is loaded beforehand
import { runHighlighterWithAstro } from '@astrojs/prism';
runHighlighterWithAstro(
`
---
const helloAstro = 'Hello, Astro!';
---
<div>{helloAstro}</div>
`,
'astro',
);
react-syntax-highlighter is a React component for syntax highlighting using highlight.js or Prism.js. It offers a wide range of themes and supports many languages. Compared to @astrojs/prism, it is specifically designed for React applications.
prism-react-renderer is another React component for rendering Prism.js highlighted code. It is highly customizable and provides a more flexible API for rendering code blocks. It is similar to @astrojs/prism but tailored for React environments.
highlight.js is a popular syntax highlighting library that works in various environments, including browsers and Node.js. It supports a wide range of languages and themes. Unlike @astrojs/prism, it is not specifically designed for Astro but can be integrated with it.
FAQs
Add Prism syntax highlighting support to your Astro site
The npm package @astrojs/prism receives a total of 1,248,945 weekly downloads. As such, @astrojs/prism popularity was classified as popular.
We found that @astrojs/prism demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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 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.