CWE-777
Weakness AllowedRegular Expression without Anchors
Abstraction: Variant · Status: Incomplete
The product uses a regular expression to perform neutralization, but the regular expression omits one or more anchors that may allow malicious or malformed data to slip through.
Mapping guidance
This CWE entry is at the Variant level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.
Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.
Modes of introduction
Content history
updated Description
updated Common_Consequences
updated Likelihood_of_Exploit
updated Relationships
updated Common_Consequences, Description, Potential_Mitigations
updated Demonstrative_Examples, Observed_Examples
updated Description
updated Relationships
updated Mapping_Notes
updated Applicable_Platforms, Weakness_Ordinalities
updated Applicable_Platforms, Background_Details, Common_Consequences, Description
15 vulnerabilities reference this CWE, most recent first.
GHSA-MHWR-5C6P-QJ97
Vulnerability from github – Published: 2026-07-29 09:31 – Updated: 2026-07-29 09:31Regular Expression without Anchors vulnerability in Apache Traffic Server.
This issue affects Apache Traffic Server: from 10.0.X through 10.1.3, from 9.0.X through 9.2.14.
Users are recommended to upgrade to version 9.2.15 or 10.1.4, which fixes the issue.
{
"affected": [],
"aliases": [
"CVE-2026-22068"
],
"database_specific": {
"cwe_ids": [
"CWE-777"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-07-29T08:16:30Z",
"severity": "MODERATE"
},
"details": "Regular Expression without Anchors vulnerability in Apache Traffic Server.\n\nThis issue affects Apache Traffic Server: from 10.0.X through 10.1.3, from 9.0.X through 9.2.14.\n\nUsers are recommended to upgrade to version 9.2.15 or 10.1.4, which fixes the issue.",
"id": "GHSA-mhwr-5c6p-qj97",
"modified": "2026-07-29T09:31:28Z",
"published": "2026-07-29T09:31:28Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-22068"
},
{
"type": "WEB",
"url": "https://lists.apache.org/thread/5prl9glcm9g2swnq9hqxvnokylm1gr6d"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
GHSA-RMMH-P597-PPVV
Vulnerability from github – Published: 2024-02-26 21:31 – Updated: 2026-04-24 20:36Showdownjs, versions <= 2.1.0, anchors subparser used to parse links has a nested regular expression which can lead to denial of service conditions given malicious input.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "showdown"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "2.1.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2024-1899"
],
"database_specific": {
"cwe_ids": [
"CWE-674",
"CWE-777"
],
"github_reviewed": true,
"github_reviewed_at": "2026-04-24T20:36:01Z",
"nvd_published_at": "2024-02-26T19:15:07Z",
"severity": "MODERATE"
},
"details": "Showdownjs, versions \u003c= 2.1.0, `anchors` subparser used to parse links has a nested regular expression which can lead to denial of service conditions given malicious input.",
"id": "GHSA-rmmh-p597-ppvv",
"modified": "2026-04-24T20:36:01Z",
"published": "2024-02-26T21:31:36Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-1899"
},
{
"type": "PACKAGE",
"url": "https://github.com/showdownjs/showdown"
},
{
"type": "WEB",
"url": "https://www.tenable.com/security/research/tra-2024-05"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
"type": "CVSS_V3"
}
],
"summary": "Showdown vulnerable to Regular Expression Denial of Service (ReDoS) in link/anchor parsing"
}
GHSA-RP6G-VGFJ-26CR
Vulnerability from github – Published: 2026-09-25 06:30 – Updated: 2026-09-25 06:30tinyauth before 5.1.3 allows rule bypass by appending an allowed route string. This is caused by an unanchored regular expression.
{
"affected": [],
"aliases": [
"CVE-2026-97736"
],
"database_specific": {
"cwe_ids": [
"CWE-777"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-09-25T04:17:50Z",
"severity": "MODERATE"
},
"details": "tinyauth before 5.1.3 allows rule bypass by appending an allowed route string. This is caused by an unanchored regular expression.",
"id": "GHSA-rp6g-vgfj-26cr",
"modified": "2026-09-25T06:30:32Z",
"published": "2026-09-25T06:30:32Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/tinyauthapp/tinyauth/security/advisories/GHSA-r27r-rr9v-vv37"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-97736"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-X72P-HMQP-46HW
Vulnerability from github – Published: 2026-11-20 14:59 – Updated: 2026-11-20 14:59Impact
When fetching objects from a malicious repository, Git LFS may execute an arbitrary command or binary after failing to sufficiently restrict the set of configuration options defined in an .lfsconfig file in the repository.
Git LFS permits a limited set of configuration options to be defined in an .lfsconfig file at the root of a Git repository, but does not filter these options correctly if their keys contain certain additional components, which allows an attacker to mimic options that configure Git LFS to use a custom command to transfer objects. An attacker can then provide an arbitrary command which Git LFS will invoke when fetching objects.
Git LFS has resolved this issue by correctly restricting the configuration of custom object transfer commands to local Git configuration files.
Patches
This problem exists in all versions since 1.3.0 and is patched in v3.8.1. All users should upgrade to v3.8.1.
Workarounds
No single workaround exists other than to disable Git LFS entirely. As far as possible, users and administrators should avoid cloning repositories from untrusted sources.
For more information
If you have any questions or comments about this advisory: * For general questions, start a discussion in the Git LFS discussion forum. * For reports of additional vulnerabilities, please follow the Git LFS security reporting policy.
{
"affected": [
{
"package": {
"ecosystem": "Go",
"name": "github.com/git-lfs/git-lfs"
},
"ranges": [
{
"events": [
{
"introduced": "1.3.0"
},
{
"last_affected": "2.13.3"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "Go",
"name": "github.com/git-lfs/git-lfs/v3"
},
"ranges": [
{
"events": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.8.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-105803"
],
"database_specific": {
"cwe_ids": [
"CWE-1286",
"CWE-777"
],
"github_reviewed": true,
"github_reviewed_at": "2026-11-20T14:59:40Z",
"nvd_published_at": "2026-11-19T17:17:52Z",
"severity": "HIGH"
},
"details": "### Impact\n\nWhen fetching objects from a malicious repository, Git LFS may execute an arbitrary command or binary after failing to sufficiently restrict the set of configuration options defined in an `.lfsconfig` file in the repository.\n\nGit LFS permits a limited set of configuration options to be defined in an `.lfsconfig` file at the root of a Git repository, but does not filter these options correctly if their keys contain certain additional components, which allows an attacker to mimic options that configure Git LFS to use a custom command to transfer objects. An attacker can then provide an arbitrary command which Git LFS will invoke when fetching objects.\n\nGit LFS has resolved this issue by correctly restricting the configuration of custom object transfer commands to local Git configuration files.\n\n### Patches\n\nThis problem exists in all versions since 1.3.0 and is patched in v3.8.1. All users should upgrade to v3.8.1.\n\n### Workarounds\n\nNo single workaround exists other than to disable Git LFS entirely. As far as possible, users and administrators should avoid cloning repositories from untrusted sources.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* For general questions, start a discussion in the Git LFS [discussion forum](https://github.com/git-lfs/git-lfs/discussions).\n* For reports of additional vulnerabilities, please follow the Git LFS [security reporting policy](https://github.com/git-lfs/git-lfs/blob/main/SECURITY.md).",
"id": "GHSA-x72p-hmqp-46hw",
"modified": "2026-11-20T14:59:41Z",
"published": "2026-11-20T14:59:40Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/git-lfs/git-lfs/security/advisories/GHSA-x72p-hmqp-46hw"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-105803"
},
{
"type": "WEB",
"url": "https://github.com/git-lfs/git-lfs/commit/1ecddd431e63c551ae11c153df0e07f37d2b44ef"
},
{
"type": "WEB",
"url": "https://github.com/git-lfs/git-lfs/commit/45c0c51c8a2d41a7d361b79f3d37f4fec46acc68"
},
{
"type": "WEB",
"url": "https://github.com/git-lfs/git-lfs/commit/5182fdeccb834ed887746a557d0c736013704f39"
},
{
"type": "WEB",
"url": "https://github.com/git-lfs/git-lfs/commit/62a727e7af1b0de0237c4d288ec0e977613df064"
},
{
"type": "WEB",
"url": "https://github.com/git-lfs/git-lfs/commit/c5b3bff4e863022057557ad4be2ce5b5922b1a84"
},
{
"type": "WEB",
"url": "https://github.com/git-lfs/git-lfs/commit/dcfb09ff56eec5825f3e95dbefbfdd520ec76d44"
},
{
"type": "PACKAGE",
"url": "https://github.com/git-lfs/git-lfs"
},
{
"type": "WEB",
"url": "https://github.com/git-lfs/git-lfs/releases/tag/v3.8.1"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
}
],
"summary": "Git LFS may execute arbitrary commands via crafted Git LFS configurations"
}
GHSA-XV5F-QCMP-V8W2
Vulnerability from github – Published: 2026-10-31 15:30 – Updated: 2026-11-06 15:31WebDyne versions from 2.031 before 3.022 for Perl execute files with .psp anywhere in the name as Perl pages.
WebDyne decides whether to run a requested file as a page by matching its name against WEBDYNE_PSP_EXT_RE, which has no end anchor.
An application that accepts uploads by checking only the final extension lets a remote attacker upload a file such as report.psp.pdf and run its embedded Perl by requesting it.
{
"affected": [],
"aliases": [
"CVE-2026-78191"
],
"database_specific": {
"cwe_ids": [
"CWE-777"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-10-31T15:16:54Z",
"severity": "CRITICAL"
},
"details": "WebDyne versions from 2.031 before 3.022 for Perl execute files with .psp anywhere in the name as Perl pages.\n\nWebDyne decides whether to run a requested file as a page by matching its name against WEBDYNE_PSP_EXT_RE, which has no end anchor.\n\nAn application that accepts uploads by checking only the final extension lets a remote attacker upload a file such as report.psp.pdf and run its embedded Perl by requesting it.",
"id": "GHSA-xv5f-qcmp-v8w2",
"modified": "2026-11-06T15:31:20Z",
"published": "2026-10-31T15:30:23Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-78191"
},
{
"type": "WEB",
"url": "https://metacpan.org/release/ASPEER/WebDyne-3.022/changes"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
Mitigation
Be sure to understand both what will be matched and what will not be matched by a regular expression. Anchoring the ends of the expression will allow the programmer to define an allowlist strictly limited to what is matched by the text in the regular expression. If you are using a package that only matches one line by default, ensure that you can match multi-line inputs if necessary.
No CAPEC attack patterns related to this CWE.