CWE-705
Weakness Allowed-with-ReviewIncorrect Control Flow Scoping
Abstraction: Class · Status: Incomplete
The product does not properly return control flow to the proper location after it has completed a task or detected an unusual condition.
Mapping guidance
This CWE entry is a Class and might have Base-level children that would be more appropriate
Examine children of this entry to see if there is a better fit
Modes of introduction
Detection methods
Automated Static Analysis
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Content history
Note: this date reflects when the entry was first published. Draft versions of this entry were provided to members of the CWE community and modified between Draft 9 and 1.0.
updated Time_of_Introduction
updated Relationships, Taxonomy_Mappings
updated Relationships
updated Common_Consequences, Relationships, Taxonomy_Mappings
updated Relationships, Taxonomy_Mappings
updated Relationships, Taxonomy_Mappings
updated Observed_Examples
updated Relationships
updated Relationships
updated Applicable_Platforms, Relationships, Taxonomy_Mappings
updated Relationships, Taxonomy_Mappings
updated Observed_Examples, Relationships
updated Relationships
updated Observed_Examples
updated Description
updated Relationships, Time_of_Introduction
updated Mapping_Notes
updated Demonstrative_Examples, Observed_Examples
updated Detection_Factors, Observed_Examples, Relationships, Weakness_Ordinalities
updated Relationships
21 vulnerabilities reference this CWE, most recent first.
GHSA-W5VR-8V7Q-W6RV
Vulnerability from github – Published: 2026-08-13 12:31 – Updated: 2026-09-08 20:41baseline-browser-mapping 2.x before 2.11.0 calls process.exit() instead of throwing on invalid or conflicting input parameters, and can trigger immediate process termination, causing denial of service.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "baseline-browser-mapping"
},
"ranges": [
{
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.11.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-45819"
],
"database_specific": {
"cwe_ids": [
"CWE-705"
],
"github_reviewed": true,
"github_reviewed_at": "2026-09-08T20:41:21Z",
"nvd_published_at": "2026-08-13T12:17:23Z",
"severity": "MODERATE"
},
"details": "baseline-browser-mapping 2.x before 2.11.0 calls process.exit() instead of throwing on invalid or conflicting input parameters, and can trigger immediate process termination, causing denial of service.",
"id": "GHSA-w5vr-8v7q-w6rv",
"modified": "2026-09-08T20:41:21Z",
"published": "2026-08-13T12:31:09Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45819"
},
{
"type": "WEB",
"url": "https://github.com/web-platform-dx/baseline-browser-mapping/pull/137"
},
{
"type": "WEB",
"url": "https://github.com/web-platform-dx/baseline-browser-mapping/pull/137/changes#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519"
},
{
"type": "WEB",
"url": "https://github.com/web-platform-dx/baseline-browser-mapping/commit/de733e2d8959559f7bb255d5927f3afcb6f31589"
},
{
"type": "PACKAGE",
"url": "https://github.com/web-platform-dx/baseline-browser-mapping"
},
{
"type": "WEB",
"url": "https://github.com/web-platform-dx/baseline-browser-mapping/blob/b7881aa61c8a057e24468ab5ee18c5ecedbbf691/src/index.ts#L142"
},
{
"type": "WEB",
"url": "https://github.com/web-platform-dx/baseline-browser-mapping/releases/tag/v2.11.0"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/package/baseline-browser-mapping"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/S:N/AU:Y/R:U/V:D/RE:M/U:Amber",
"type": "CVSS_V4"
}
],
"summary": "baseline-browser-mapping process termination on invalid input causes denial of service"
}
No mitigation information available for this CWE.
No CAPEC attack patterns related to this CWE.