Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Provides a Joi rule to validate IANA timezone strings (eg. Europe/London
, America/New_York
, Etc/GMT-8
) using luxon.
Joi-tz supports and is tested against Joi 16.x or higher.
This project is forked from joi-timezone (unmaintained). That project remains functional for Joi 9.x-15.x.
npm: npm install joi-tz
yarn: yarn add joi-tz
import BaseJoi from 'joi';
import JoiTimezone from 'joi-tz';
const Joi = BaseJoi.extend(JoiTimezone);
Joi.timezone().validate('Melbourne/Australia');
// returns {error: null, value: 'Melbourne/Australia'}
This library is tested for compatibility, and contains peer dependencies with the following versions.
Version | @hapi/joi 16.x | joi 16.x | joi 17.x |
---|---|---|---|
5.0.0 | ✅ | ✅ | |
4.1.1 | ✅ | ✅ | |
4.1.0 | ✅ | ✅ | |
4.0.2 | ✅ |
FAQs
Timezone string validation for Joi 16.x or higher.
The npm package joi-tz receives a total of 1,698 weekly downloads. As such, joi-tz popularity was classified as popular.
We found that joi-tz demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.