CVE-2020-11078: httplib2 - Unescaped URI Allows Header and Body Manipulation

httplib2 Updated 02 Oct 2025

Summary

20/05/2020
Yes i
Moderate
6.8

CVE-2020-11078: In httplib2 before version 0.18.0, an attacker controlling unescaped part of uri for httplib2.Http.request() could change request headers and body, send additional hidden requests to same server. Affects httplib2 across 2 version ranges.

< 0.18.0 < a1457cc31f3206cf691d11d2bf34e98865873e9e

Fixed in a1457cc31f3206cf691d11d2bf34e98865873e9e. How to fix ↓

Also tracked for

The same CVE-2020-11078 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

httplib2 is a Python library that provides a high-level interface for making HTTP requests. It is commonly used in various Python applications to handle HTTP communication. The library allows developers to construct and send HTTP requests, handle responses, and manage cookies and authentication. However, versions of httplib2 before 0.18.0 are vulnerable to an issue where an attacker controlling an unescaped part of the URI passed to httplib2.Http.request() can modify request headers and body, potentially leading to unauthorized actions or information disclosure. This vulnerability affects software that constructs URIs using string concatenation instead of proper URL encoding.

Vulnerability Detail

The vulnerability in httplib2 arises from the improper handling of unescaped parts of the URI. When constructing an HTTP request, if the URI is not properly encoded, an attacker can manipulate the request headers and body by injecting additional content. This can lead to various security issues, such as unauthorized access, data tampering, or information disclosure. The vulnerability can be exploited by an attacker who can control a portion of the URI used in the request. It is important to note that this vulnerability only affects versions of httplib2 prior to 0.18.0.

How To Fix

Latest published version: 0.32.0 as of 22 Oct 2026

pip install --upgrade "httplib2==0.32.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

a1457cc31f3206cf691d11d2bf34e98865873e9e

This is the first release that contains the fix.

pip install --upgrade "httplib2==a1457cc31f3206cf691d11d2bf34e98865873e9e"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version of httplib2 is not immediately feasible, a possible workaround is to ensure that the URI used in the request is properly encoded. Instead of manually concatenating the URI components, developers should use a URL encoding function or library to construct the URI. This ensures that any potentially malicious content is properly escaped and cannot be used to manipulate the request headers and body.

Conclusion

The vulnerability in httplib2 versions prior to 0.18.0 allows an attacker to manipulate request headers and body by controlling an unescaped part of the URI. To mitigate this issue, it is crucial to upgrade to the latest version of httplib2 (0.18.0 or later) or ensure proper URI encoding. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for httplib2 →

Share this vulnerability

FAQ

httplib2 is a Python library that provides a high-level interface for making HTTP requests. It is commonly used in various Python applications to handle HTTP communication.

The vulnerability allows an attacker to manipulate request headers and body, potentially leading to unauthorized actions or information disclosure.

Versions of httplib2 prior to 0.18.0 are affected by this vulnerability.

To fix this vulnerability, it is recommended to upgrade to httplib2 version 0.18.0 or later.

If upgrading to the latest version is not immediately feasible, developers can ensure that the URI used in the request is properly encoded to prevent unauthorized manipulation.

Related vulnerabilities

Recent vulnerabilities recorded for httplib2.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 0.32.0 as of 22 Oct 2026

pip install --upgrade "httplib2==0.32.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

a1457cc31f3206cf691d11d2bf34e98865873e9e

This is the first release that contains the fix.

pip install --upgrade "httplib2==a1457cc31f3206cf691d11d2bf34e98865873e9e"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback