Skip to content

Commit

Permalink
Merge pull request from GHSA-mqjc-6jp2-39mq
Browse files Browse the repository at this point in the history
limit NKFD normalization to 10k chars
  • Loading branch information
jmcrawford45 committed Jan 17, 2024
2 parents 16effca + 7b86bb4 commit caeecb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Added Digicert source plugin. Enable it with DIGICERT_SOURCE_ENABLED
Added AWS ACM source plugin. This plugin retreives all certificates for an account and a region.
Added AWS ACM destination plugin. This plugin uploads a certificate to AWS ACM.
Allow updating options field via authority update API.
Fixed a DoS security issue affecting Windows env via the name parameter of the certificate post endpoint.


1.6.0 - `2023-10-23`
Expand Down
2 changes: 2 additions & 0 deletions lemur/common/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def text_to_slug(value, joiner="-"):
Normalize a string to a "slug" value, stripping character accents and removing non-alphanum characters.
A series of non-alphanumeric characters is replaced with the joiner character.
"""
if len(value) > 10_000:
raise ValueError("Input value is too long.")

# Strip all character accents: decompose Unicode characters and then drop combining chars.
value = "".join(
Expand Down

0 comments on commit caeecb7

Please sign in to comment.