Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2023-26303: πŸ› FIX: CVE-2023-26303 (#246) Β· executablebooks/markdown-it-py@ae03c61

Denial of service could be caused to markdown-it-py, before v2.2.0, if an attacker was allowed to force null assertions with specially crafted input.

CVE
#dos

@@ -83,8 +83,8 @@ def render(

for i, token in enumerate(tokens):

if token.type == "inline":

assert token.children is not None

result += self.renderInline(token.children, options, env)

if token.children:

result += self.renderInline(token.children, options, env)

elif token.type in self.rules:

result += self.rules[token.type](tokens, i, options, env)

else:

@@ -206,8 +206,8 @@ def renderInlineAsText(

if token.type == "text":

result += token.content

elif token.type == "image":

assert token.children is not None

result += self.renderInlineAsText(token.children, options, env)

if token.children:

result += self.renderInlineAsText(token.children, options, env)

elif token.type == "softbreak":

result += β€œ\n”

@@ -305,14 +305,10 @@ def image(

# β€œalt” attr MUST be set, even if empty. Because it’s mandatory and

# should be placed on proper position for tests.

assert (

token.attrs and β€œalt” in token.attrs

), β€˜"image" token\’s attrs must contain `alt`’

# Replace content with actual value

token.attrSet("alt", self.renderInlineAsText(token.children, options, env))

if token.children:

token.attrSet("alt", self.renderInlineAsText(token.children, options, env))

else:

token.attrSet("alt", β€œβ€)

return self.renderToken(tokens, idx, options, env)

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman Β· Pull Request #14969 Β· redpanda-data/redpanda