
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
@frontmcp/utils
Advanced tools
Shared utility functions for FrontMCP - string manipulation, URI handling, path utilities, and more
Shared utility functions for the FrontMCP ecosystem.
Internal package. Used by
@frontmcp/sdkand other@frontmcp/*libraries — most users do not need to install this directly.
npm install @frontmcp/utils
Naming — splitWords, toCase, shortHash, ensureMaxLen, idFromString for string manipulation and case conversion
URI — isValidMcpUri, extractUriScheme, parseUriTemplate, matchUriTemplate, expandUriTemplate (RFC 3986 / RFC 6570)
Path — trimSlashes, joinPath for URL path operations
Content — sanitizeToJson, inferMimeType for safe serialization and MIME detection
HTTP — validateBaseUrl for URL validation and normalization
Crypto — sha256, sha256Hex, sha256Base64url, hkdfSha256, encryptAesGcm, decryptAesGcm, randomBytes, randomUUID, generateCodeVerifier, generateCodeChallenge, generatePkcePair, base64urlEncode, base64urlDecode for cross-platform cryptography
File system — readFile, writeFile, mkdir, stat, fileExists, readJSON, writeJSON, ensureDir, isDirEmpty, runCmd and more — lazy-loaded for Node.js environments
import { matchUriTemplate, sha256Hex, fileExists } from '@frontmcp/utils';
const params = matchUriTemplate('users/{id}/posts/{postId}', 'users/123/posts/456');
// { id: '123', postId: '456' }
const hash = sha256Hex('hello world');
const exists = await fileExists('/path/to/file');
@frontmcp/sdk — core framework@frontmcp/auth — uses crypto utilities for PKCE, encryptionApache-2.0 — see LICENSE.
FAQs
Shared utility functions for FrontMCP - string manipulation, URI handling, path utilities, and more
The npm package @frontmcp/utils receives a total of 3,031 weekly downloads. As such, @frontmcp/utils popularity was classified as popular.
We found that @frontmcp/utils 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
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.