
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.
@bkmj/node-red-contrib-flow-switch
Advanced tools
Un nœud Node-RED qui agit comme un interrupteur avec un bouton UI sur le nœud.
A Node-RED node that acts as a switch to control the passage of messages, with a UI button directly on the node and the ability to control it via incoming messages.
[Image of an example of the flow-switch node in Node-RED]
msg.topic and msg.payload.To install this node:
Via npm (Recommended):
~/.node-red).npm install @bkmj/node-red-contrib-flow-switch
(Note: If this package is not yet published to npm, you would typically install it by cloning the Git repository directly into your ~/.node-red/nodes directory and then restarting Node-RED.)
When you add a flow-switch node to your flow, you can configure the following properties in its edit panel:
Use 'Initial state on deploy' value: The node will adopt the state defined below upon each deployment.Keep last active state: The node will remember its last active state (ON/OFF) before deployment and restore it.msg.topic the node will listen to for commands (default: "control").msg.payload):
msg.payload that will activate the switch (default: "on").msg.payload that will deactivate the switch (default: "off").msg.payload that will invert the switch's state (default: "toggle").Click the button on the right side of the node in the Node-RED editor to change the switch's active state. The status under the node will update.
cmnd/mySwitch/state).flow-switch node with:
msg.topic matching the configured "Control Topic".msg.payload matching one of the configured "Control Values".Example:
If "Control Topic" is control and "Value for ON" is true:
An incoming message with msg.topic = "control" and msg.payload = true will turn the switch ON.
Translations are managed in the locales directory.
locales/en-US/flow-switch.json for English.locales/fr-CA/flow-switch.json for Canadian French.Feel free to contribute with other translations!
This project is licensed under the Apache-2.0 License.
FAQs
Un nœud Node-RED qui agit comme un interrupteur avec un bouton UI sur le nœud.
We found that @bkmj/node-red-contrib-flow-switch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.