CVE-2026-22809: Tarteaucitronjs Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-q5f6-qxm2-mcqm
CVSS 4.4
CWE-1333
Published
Advisory Summary

CVE-2026-22809 is a MODERATE (CVSS 4.4) denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Tarteaucitronjs libraries in the npm ecosystem. The issue involves tarteaucitron.js has regular expression denial of service (redos) vulnerability. Remediation is available by upgrading affected packages to version 1.29.0.

CVE-2026-22809 at a Glance

CVE Identifier CVE-2026-22809
GHSA Identifier GHSA-q5f6-qxm2-mcqm
Severity MODERATE
CVSS v3.1 Base Score 4.4
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product Tarteaucitronjs
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-22809

To remediate this vulnerability, upgrade all affected Tarteaucitronjs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

tarteaucitronjs fixed: 1.29.0
npm install tarteaucitronjs@1.29.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls tarteaucitronjs

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-22809, inspect your project dependencies using npm:

npm ls tarteaucitronjs

Analyze the terminal output to locate any version of Tarteaucitronjs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.29.0), your application is affected.

Note: The npm ls tarteaucitronjs command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Tarteaucitronjs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary A potential Regular Expression Denial of Service (ReDoS) vulnerability was identified in tarteaucitron.js in the handling of the `issuu_id` parameter. ## Details The issue was caused by the use of insufficiently constrained regular expressions applied to attacker-controlled input: if (issuu_id.match(/\d+\/\d+/)) { issuu_embed = '#' + issuu_id; } else if (issuu_id.match(/d=(.*)&u=(.*)/)) { issuu_embed = '?' + issuu_id; } These expressions are not anchored and rely on greedy patterns (`.*`). When evaluated against specially crafted input, they may cause excessive backtracking, leading to high CPU consumption and potential denial of service. ## Impact An attacker able to control the `issuu_id` parameter could exploit this vulnerability to degrade performance or cause temporary service unavailability through CPU exhaustion. No confidentiality or integrity impact was identified. ## Fix https://github.com/AmauriC/tarteaucitron.js/commit/f0bbdac2fdf3cd24a325fc0928c0d34abf1b7b52 The logic was simplified and hardened by removing ambiguous regular expressions and enforcing strict input validation: if (issuu_id.match(/^\d+\/\d+$/)) { issuu_embed = '#' + issuu_id; } else { issuu_embed = '?' + issuu_id; } This change eliminates the risk of catastrophic backtracking and prevents ReDoS conditions. Additionally, code related to the legacy "Alexa Rank" service was removed. This service, historically provided by Alexa.com via browser toolbars and popularity rankings, has been deprecated for several years and is no longer operational. The Alexa domain is now exclusively associated with the Amazon voice assistant, and the original ranking service has been permanently discontinued.

CVE-2026-22809 Affected Tarteaucitronjs Versions

1 component(s)
Fixed Versions:
1.29.0
Product / Package Ecosystem Affected Versions Fixed Version
tarteaucitronjs
npm
< 1.29.0
1.29.0

References

Frequently Asked Questions

What is CVE-2026-22809?
CVE-2026-22809 is a security vulnerability in Tarteaucitronjs involving tarteaucitron.js has Regular Expression Denial of Service (ReDoS) vulnerability under CWE-1333: Inefficient Regular Expression Complexity.
Which Tarteaucitronjs versions are affected?
Affected versions include releases prior to 1.29.0 across affected packages: tarteaucitronjs.
What version fixes CVE-2026-22809?
Upgrading to 1.29.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tarteaucitronjs affected?
Yes, tarteaucitronjs is affected in releases prior to 1.29.0. Upgrade your dependency to 1.29.0 or later.
What is the CVSS score of CVE-2026-22809?
CVE-2026-22809 has a CVSS v3.1 base score of 4.4 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-22809?
CVE-2026-22809 is classified under CWE-1333: Inefficient Regular Expression Complexity (The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.).
How can I check npm dependencies for CVE-2026-22809?
Run the dependency tree command: 'npm ls tarteaucitronjs'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q5f6-qxm2-mcqm",
  "modified" : "2026-01-13T21:41:31Z",
  "published" : "2026-01-13T20:35:28Z",
  "aliases" : [ "CVE-2026-22809" ],
  "summary" : "tarteaucitron.js has Regular Expression Denial of Service (ReDoS) vulnerability",
  "details" : "## Summary\n\nA potential Regular Expression Denial of Service (ReDoS) vulnerability was identified in tarteaucitron.js in the handling of the `issuu_id` parameter. \n\n## Details\n\nThe issue was caused by the use of insufficiently constrained regular expressions applied to attacker-controlled input:\n\n    if (issuu_id.match(/\\d+\\/\\d+/)) {\n        issuu_embed = '#' + issuu_id;\n    } else if (issuu_id.match(/d=(.*)&u=(.*)/)) {\n        issuu_embed = '?' + issuu_id;\n    }\n\nThese expressions are not anchored and rely on greedy patterns (`.*`). When evaluated against specially crafted input, they may cause excessive backtracking, leading to high CPU consumption and potential denial of service.\n\n## Impact\n\nAn attacker able to control the `issuu_id` parameter could exploit this vulnerability to degrade performance or cause temporary service unavailability through CPU exhaustion.\n\nNo confidentiality or integrity impact was identified.\n\n## Fix https://github.com/AmauriC/tarteaucitron.js/commit/f0bbdac2fdf3cd24a325fc0928c0d34abf1b7b52\n\nThe logic was simplified and hardened by removing ambiguous regular expressions and enforcing strict input validation:\n\n    if (issuu_id.match(/^\\d+\\/\\d+$/)) {\n        issuu_embed = '#' + issuu_id;\n    } else {\n        issuu_embed = '?' + issuu_id;\n    }\n\nThis change eliminates the risk of catastrophic backtracking and prevents ReDoS conditions.\n\nAdditionally, code related to the legacy \"Alexa Rank\" service was removed. This service, historically provided by Alexa.com via browser toolbars and popularity rankings, has been deprecated for several years and is no longer operational. The Alexa domain is now exclusively associated with the Amazon voice assistant, and the original ranking service has been permanently discontinued.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "tarteaucitronjs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.29.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-q5f6-qxm2-mcqm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-22809"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/AmauriC/tarteaucitron.js/commit/f0bbdac2fdf3cd24a325fc0928c0d34abf1b7b52"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/AmauriC/tarteaucitron.js"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-13T20:35:28Z",
    "nvd_published_at" : "2026-01-13T20:16:11Z"
  }
}