
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.
js-context-menu
Advanced tools
Library for displaying a customizable context menu on right-click mouse button
Library for displaying a customizable context menu on right-click mouse button
Declare icons and labels for contextual menu options
var mlist = {
"arrow-circle-left": "Atrás",
"undo": "Deshacer",
"refresh": "Recargar",
"question-circle": "Ayuda",
"close": "Cerrar"
};
Note that "mlist" is a dictionary which Key is the name of the icon (font-awesome library) and Value is the label of the option.
You need to declare also the context menu actions for each button like this:
var mlinks = Array(
"alert('Seleccionada la opción atrás')",
"alert('Seleccionada la opción Deshacer')",
"alert('Seleccionada la opción Recargar')",
"alert('Seleccionada la opción Ayuda')",
"alert('Seleccionada la opción Cerrar')"
);
Finally only need to instantiate the ContextMenu object like:
var cm = new ContextualMenu(mlist, mlinks);
You can run test suite by running: karma start karma.conf.js
FAQs
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.