
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Ribald is a lightweight and efficient Node.js package designed for detecting vulgar and obscene words within strings. It returns an array containing these offensive terms found in the input string. With its comprehensive list of offensive terms, Ribald em
Ribald is a lightweight and efficient Node.js package designed for detecting vulgar and obscene words within strings. It provides a comprehensive list of offensive terms, allowing developers to filter and moderate user-generated content effectively.
Install Ribald via npm:
npm install ribald
Import Ribald into your Node.js application:
javascript :
import ribald from "ribald";
let input = "This is a test string containing vulgar words like fuck, asshole, and slut.";
let detectedWords = ribald(input);
console.log(detectedWords);
This will output an array containing all detected vulgar words from the input string.
import ribald from "ribald";
let input = "This is a test string containing vulgar words like fuck, asshole, and slut.";
let detectedWords = ribald(input);
console.log(detectedWords);
// Output:
{
"original": "This is a test string containing vulgar words like fuck, asshole, and slut.",
"words": ["fuck", "asshole", "slut"],
"count": 3,
"filter": "This is a test string containing vulgar words like ****, *******, and ****."
}
The package includes a predefined list of vulgar words such as:
Contributions to the list of vulgar words or improvements to the package are welcome. Please open an issue or submit a pull request on GitHub
This package is licensed under the ISC License.
This package is intended for educational and informational purposes only. Use it responsibly and in accordance with applicable laws and regulations.
FAQs
Ribald is a lightweight and efficient Node.js package designed for detecting vulgar and obscene words within strings. It returns an array containing these offensive terms found in the input string. With its comprehensive list of offensive terms, Ribald em
The npm package ribald receives a total of 0 weekly downloads. As such, ribald popularity was classified as not popular.
We found that ribald demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.