{"id":"DHI-cm34-kagy-cwgc-zndb","summary":"A Denial of Service (DoS) vulnerability exists in the `@angular/common` package of the Angular framework. The…","details":"A Denial of Service (DoS) vulnerability exists in the `@angular/common` package of the Angular framework. The `formatDate` function, which is also utilized by the standard Angular `DatePipe`, does not properly limit or validate the length of the `format` parameter. \n\nWhen parsing a maliciously crafted, excessively long date format string (e.g., a repeating pattern or very large string), the internal parser splits the string iteratively using a regular expression loop. This results in uncontrolled resource consumption (high CPU utilization and excessive memory allocations), leading to a Denial of Service (DoS).\n\n\n### Impact\n\n#### 1. Server-Side Rendering (SSR)\nIn Angular applications that leverage Server-Side Rendering, an attacker can supply a malicious payload with an excessively long date format string. Processing this on the server causes high CPU usage and triggers a `JavaScript heap out of memory` crash, rendering the application unavailable to all users.\n\n#### 2. Client-Side Rendering (CSR)\nIn standard client-side applications, executing the vulnerable function with an excessively long format string blocks the browser's main thread, causing the browser tab to freeze and become completely unresponsive.\n\n### Patched Versions\n* 22.0.1  \n* 21.2.17  \n* 20.3.25\n\n### Attack Preconditions\nFor this vulnerability to be exploitable, both of the following conditions must be met:\n1. **Vulnerable Component Usage:** The application must format dates using the `formatDate` utility or the `DatePipe`.\n2. **Attacker-Controlled Parameter:** The date format string passed to these utilities must be customizable or directly controlled by untrusted user input (e.g., parsed from query parameters, user preferences, or API responses).\n\n*If the date format is hardcoded (e.g., `'mediumDate'`, `'shortTime'`, or static strings) or properly validated to be within a reasonable length limit, the application is not vulnerable.*","modified":"2026-11-21T00:30:14.545655519Z","published":"2026-11-20T00:19:15Z","upstream":["CVE-2026-54268"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-cm34-kagy-cwgc-zndb"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-48r7-hpm6-gfxm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54268"},{"type":"ADVISORY","url":"https://github.com/angular/angular/security/advisories/GHSA-48r7-hpm6-gfxm"},{"type":"FIX","url":"https://github.com/angular/angular/pull/69197"},{"type":"FIX","url":"https://github.com/angular/angular/commit/eeb03f4ea310e2e51ba5d53a421ec7b418e186cd"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-54268"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-54268"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-54268"}],"affected":[{"package":{"name":"apicurio-registry-ui-3.2","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/apicurio-registry-ui-3.2"},"versions":["3.2.6-0","3.2.6-1"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-cm34-kagy-cwgc-zndb.json"}},{"package":{"name":"apicurio-registry-ui-3.3","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/apicurio-registry-ui-3.3"},"versions":["3.3.4-0","3.3.4-1","3.3.5-0","3.3.5-1"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-cm34-kagy-cwgc-zndb.json","owner_kind":"HSP"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}