Skip to content

(May) Multiple Security Vulnerabilities in Brython Library #2547

Closed
@kexinoh

Description

@kexinoh

Hello Brython maintainers,
I have identified several security vulnerabilities in the Brython library. These issues arise from the divergence of Brython's Python implementation from the mainline version, leading to some unpatched security risks. Please update the implementation of the standard library to be closer to the mainline version in a timely manner. (If possible, could you issue a security advisory? This would be very helpful to me.)
Affected Areas:
These vulnerabilities exist in multiple parts of the library, including but not limited to:
http/cookies.py

_OctalPatt = re.compile(r"\\[0-3][0-7][0-7]")
_QuotePatt = re.compile(r"[\\].")
def _unquote(str):
# If there aren't any doublequotes,
# then there can't be any special characters. See RFC 2109.
if str is None or len(str) < 2:
return str
if str[0] != '"' or str[-1] != '"':
return str
# We have to assume that we must decode this string.
# Down to work.

==>GHSA-7pwv-g7hj-39pr
Other core modules that may have similar unpatched issues.
Impact: These vulnerabilities could lead to significant security risks.
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions