Cross-site Scripting (XSS) Affecting python-twisted-web package, versions <0:12.1.0-8.amzn2.0.1


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.2% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2-PYTHONTWISTEDWEB-5411316
  • published5 Apr 2023
  • disclosed26 Oct 2022

Introduced: 26 Oct 2022

CVE-2022-39348  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 python-twisted-web to version 0:12.1.0-8.amzn2.0.1 or higher.
This issue was patched in ALAS2-2023-2008.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-twisted-web package and not the python-twisted-web package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

Twisted is an event-based framework for internet applications. Started with version 0.9.4, when the host header does not match a configured host twisted.web.vhost.NameVirtualHost will return a NoResource resource which renders the Host header unescaped into the 404 response allowing HTML and script injection. In practice this should be very difficult to exploit as being able to modify the Host header of a normal HTTP request implies that one is already in a privileged position. This issue was fixed in version 22.10.0rc1. There are no known workarounds.

CVSS Base Scores

version 3.1