CVE-2026-58270: Sync-in Server Regex Denial of Service Vulnerability

@sync-in/server Updated 22 Sep 2026

Summary

22/09/2026
Yes i
Moderate
6.5

CVE-2026-58270: Sync-in Server has a ReDoS via Unsanitized Regex in Sync Diff pathFilters. Affects @sync-in/server versions < 2.4.0. Fixed in 2.4.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Sync-in Server is an open-source application designed for synchronizing files across devices. It provides a robust API for managing sync operations, including diff generation for file changes. The server is built on Node.js and is widely used for its efficiency in handling file synchronization tasks. However, a vulnerability in version 2.3.0 allows attackers to exploit regex patterns, leading to potential denial of service.

Vulnerability Detail

The vulnerability arises from the sync diff endpoint, which accepts user-controlled regex patterns through the 'pathFilters' parameter. This regex is compiled without complexity validation, allowing for catastrophic backtracking. For instance, a regex pattern like '^(a+)+b' can cause the Node.js event loop to block when evaluated against certain file paths, rendering the server unresponsive. This can lead to denial of service, especially in single-process deployments, where other requests cannot be processed while the regex evaluation is ongoing.

How To Fix

Latest published version: 2.6.0 as of 23 Oct 2026

npm install @sync-in/server@2.6.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.4.0

This is the first release that contains the fix.

npm install @sync-in/server@2.4.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can validate the 'pathFilters' input before using it in your application. Here is an example of how to implement this validation in your code:

@IsOptional()
@Transform(({ value }) => {
  if (typeof value !== 'string' || value.length === 0) return null;

  if (value.length > MAX_PATH_FILTER_PATTERN_LENGTH) {
    throw new BadRequestException('Path filter pattern is too long');
  }

  let pathFilter: RegExp;
  try {
    pathFilter = new RegExp(value, 'i');
  } catch {
    throw new BadRequestException('Invalid path filter pattern');
  }

  if (!isSafePattern(pathFilter)) {
    throw new BadRequestException('Unsafe path filter pattern');
  }

  return pathFilter;
})
pathFilters?: RegExp = null;

This code checks for valid input and rejects unsafe regex patterns.

Conclusion

The CVE-2026-58270 vulnerability in Sync-in Server poses a significant risk by allowing denial of service through unsanitized regex patterns. It is crucial to update to the patched version and implement proper input validation to mitigate this risk.

See every vulnerability recorded for @sync-in/server →

Share this vulnerability

FAQ

CVE-2026-58270 is a vulnerability in Sync-in Server that allows for denial of service through unsanitized regex patterns.

An attacker can exploit this vulnerability by sending crafted regex patterns that block the server's event loop, making it unresponsive to other requests.

Sync-in Server versions up to 2.3.0 are affected. Version 2.4.0 and later contain the fix.

You can protect your application by updating to version 2.4.0 or later and implementing input validation for regex patterns.

Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. You can check for vulnerabilities without signup using the Vulert playground.

Related vulnerabilities

Recent vulnerabilities recorded for @sync-in/server.

How To Fix

Latest published version: 2.6.0 as of 23 Oct 2026

npm install @sync-in/server@2.6.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.4.0

This is the first release that contains the fix.

npm install @sync-in/server@2.4.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback