Skip to content

fix(common): Limits date format string length#69000

Open
SkyZeroZx wants to merge 1 commit into
angular:mainfrom
SkyZeroZx:fix/datepipe
Open

fix(common): Limits date format string length#69000
SkyZeroZx wants to merge 1 commit into
angular:mainfrom
SkyZeroZx:fix/datepipe

Conversation

@SkyZeroZx
Copy link
Copy Markdown
Contributor

@SkyZeroZx SkyZeroZx commented May 28, 2026

Introduces a maximum length of 1024 characters for date format strings.

This prevents potential Denial of Service (DoS) attacks by throwing an INVALID_DATE_FORMAT error if an excessively long format string is provided to formatDate or DatePipe, safeguarding against performance degradation or application crashes.

This can be considered similar to #68840

Introduces a maximum length of 1024 characters for date format strings.

This prevents potential Denial of Service (DoS) attacks by throwing an
`INVALID_DATE_FORMAT` error if an excessively long format string is
provided to `formatDate` or `DatePipe`, safeguarding against performance
degradation or application crashes.
@angular-robot angular-robot Bot added the area: common Issues related to APIs in the @angular/common package label May 28, 2026
@ngbot ngbot Bot added this to the Backlog milestone May 28, 2026
@SkyZeroZx SkyZeroZx marked this pull request as ready for review May 28, 2026 19:58
@pullapprove pullapprove Bot requested a review from crisbeto May 28, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: common Issues related to APIs in the @angular/common package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant