Skip to content
Heist/ feed
Back to feed
HighFix available

node-express, node-path-to-regexp — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2024-45296

path-to-regexp turns path strings into a regular expressions. In certain cases, path-to-regexp will output a regular expression that can be exploited to cause poor performance. Because JavaScript is single threaded and regex matching runs on the main thread, poor performance will block the event loop and lead to a DoS. The bad regular expression is generated any time you have two parameters within a single segment, separated by something that is not a period (.). For users of 0.1, upgrade to 0.1.10. All other users should upgrade to 8.0.0.

Products
node-express, node-path-to-regexp
Affected versions
1.0.1-1, 3.0.0-2, 3.1.0-1, 4.21.0+~cs8.36.26-2, 4.21.2+~cs8.36.27-1, 4.21.2+~cs8.36.27-2, 4.21.2+~cs8.36.27-3, 5.1.0+~cs12.3.3-1build1, 5.2.1+~cs12.3.9-1, 6.1.0-2, 6.2.0-1, 6.2.0-2, 6.2.1-1
Fixed versions
1.0.1-1ubuntu0.16.04.1~esm1, 1.0.1-1ubuntu0.18.04.1~esm1, 6.1.0-2ubuntu0.1~esm1, 6.2.0-2ubuntu0.1~esm1, 6.2.1-1ubuntu0.1~esm1
CVEs
CVE-2024-45296
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:10 UTC · Revision 1

Source evidence

UBUNTU-CVE-2024-45296

core-osv · Original source

Published 9 Sept 2024, 19:15 UTC

path-to-regexp turns path strings into a regular expressions. In certain cases, path-to-regexp will output a regular expression that can be exploited to cause poor performance. Because JavaScript is single threaded and regex matching runs on the main thread, poor performance will block the event loop and lead to a DoS. The bad regular expression is generated any time you have two parameters within a single segment, separated by something that is not a period (.). For users of 0.1, upgrade to 0.1.10. All other users should upgrade to 8.0.0.

osv:UBUNTU-CVE-2024-45296

node-path-to-regexp

Fixed versions: 1.0.1-1ubuntu0.16.04.1~esm1

node-path-to-regexp

Fixed versions: 1.0.1-1ubuntu0.18.04.1~esm1

node-path-to-regexp

Fixed versions: 6.1.0-2ubuntu0.1~esm1

node-path-to-regexp

Fixed versions: 6.2.0-2ubuntu0.1~esm1

node-path-to-regexp

Fixed versions: 6.2.1-1ubuntu0.1~esm1

node-express

Fixed versions: Not specified

node-express

Fixed versions: Not specified

node-express

Fixed versions: Not specified

Complete source record
{
  "id": "6f04fdba642ce4892a919529e0189dbf980a44c2ba50f34d8e5a836b25f3ffd6",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-45296",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2024-45296",
    "summary": "path-to-regexp turns path strings into a regular expressions. In certain cases, path-to-regexp will output a regular expression that can be exploited to cause poor performance. Because JavaScript is single threaded and regex matching runs on the main thread, poor performance will block the event loop and lead to a DoS. The bad regular expression is generated any time you have two parameters within a single segment, separated by something that is not a period (.). For users of 0.1, upgrade to 0.1.10. All other users should upgrade to 8.0.0.",
    "evidence": "osv:UBUNTU-CVE-2024-45296",
    "products": [
      {
        "name": {
          "value": "node-path-to-regexp",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.0.1-1ubuntu0.16.04.1~esm1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.0.1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-path-to-regexp",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.0.1-1ubuntu0.18.04.1~esm1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.0.1-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-path-to-regexp",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.0-2ubuntu0.1~esm1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.0.0-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.1.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.1.0-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-path-to-regexp",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.2.0-2ubuntu0.1~esm1",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "6.2.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.2.0-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-path-to-regexp",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.2.1-1ubuntu0.1~esm1",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "6.2.1-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-express",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.21.0+~cs8.36.26-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4.21.2+~cs8.36.27-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4.21.2+~cs8.36.27-2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-express",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.1.0+~cs12.3.3-1build1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "5.2.1+~cs12.3.9-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-express",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.21.2+~cs8.36.27-2",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "4.21.2+~cs8.36.27-3",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "5.1.0+~cs12.3.3-1build1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2024-45296",
      "aliases": [
        "UBUNTU-CVE-2024-45296"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.0.1-1ubuntu0.16.04.1~esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-path-to-regexp",
            "purl": "pkg:deb/ubuntu/node-path-to-regexp?arch=source&distro=esm-apps-legacy%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "1.0.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-45296.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-path-to-regexp",
                "binary_version": "1.0.1-1ubuntu0.16.04.1~esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.0.1-1ubuntu0.18.04.1~esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-path-to-regexp",
            "purl": "pkg:deb/ubuntu/node-path-to-regexp?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "1.0.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-45296.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-path-to-regexp",
                "binary_version": "1.0.1-1ubuntu0.18.04.1~esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.1.0-2ubuntu0.1~esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-path-to-regexp",
            "purl": "pkg:deb/ubuntu/node-path-to-regexp?arch=source&distro=esm-apps%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "3.0.0-2",
            "3.1.0-1",
            "6.1.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-45296.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-path-to-regexp",
                "binary_version": "6.1.0-2ubuntu0.1~esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.2.0-2ubuntu0.1~esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-path-to-regexp",
            "purl": "pkg:deb/ubuntu/node-path-to-regexp?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "6.2.0-1",
            "6.2.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-45296.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-path-to-regexp",
                "binary_version": "6.2.0-2ubuntu0.1~esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.2.1-1ubuntu0.1~esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-path-to-regexp",
            "purl": "pkg:deb/ubuntu/node-path-to-regexp?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "6.2.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-45296.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-path-to-regexp",
                "binary_version": "6.2.1-1ubuntu0.1~esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-express",
            "purl": "pkg:deb/ubuntu/node-express?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "4.21.0+~cs8.36.26-2",
            "4.21.2+~cs8.36.27-1",
            "4.21.2+~cs8.36.27-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-45296.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-express",
                "binary_version": "4.21.2+~cs8.36.27-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-express",
            "purl": "pkg:deb/ubuntu/node-express?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "5.1.0+~cs12.3.3-1build1",
            "5.2.1+~cs12.3.9-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-45296.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-express",
                "binary_version": "5.2.1+~cs12.3.9-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-express",
            "purl": "pkg:deb/ubuntu/node-express?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "4.21.2+~cs8.36.27-2",
            "4.21.2+~cs8.36.27-3",
            "5.1.0+~cs12.3.3-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-45296.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-express",
                "binary_version": "5.1.0+~cs12.3.3-1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:39.487397179Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-45296"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2024-45296",
        "https://www.cve.org/CVERecord?id=CVE-2024-45296",
        "https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-9wv6-86v2-598j",
        "https://github.com/pillarjs/path-to-regexp/commit/29b96b4a1de52824e1ca0f49a701183cc4ed476f",
        "https://github.com/pillarjs/path-to-regexp/commit/60f2121e9b66b7b622cc01080df0aabda9eedee6"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-45296",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355918,
  "published_at": "2024-09-09T19:15:00+00:00"
}