CVE-2018-1000519: aiohttp-session Session Fixation Vulnerability

aiohttp-session Updated 02 Oct 2025

Summary

26/06/2018
Yes i
High
6.5

CVE-2018-1000519: aio-libs aiohttp-session contains a Session Fixation vulnerability in load_session function for RedisStorage (see: https://github.com/aio-libs/aiohttp-session/blob/master/aiohttp_session/redis_storage.py#L42) that can re... Affects aiohttp-session versions < 2.4.0. Fixed in 2.4.0. How to fix ↓

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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

aiohttp-session is a Python package available on PyPI that provides session management for aiohttp web applications. It allows developers to store and retrieve session data using different storage backends, including Redis. The vulnerability identified as CVE-2018-1000519 affects aiohttp-session when using RedisStorage as the session storage backend.

Vulnerability Detail

The vulnerability in aiohttp-session allows for Session Fixation attacks. The issue lies in the load_session function of the RedisStorage module. Attackers can exploit this vulnerability by setting session cookies using various methods, such as passing a session parameter in the URL (?session=<session_id>) or using meta tags or script tags with the Set-Cookie header. By manipulating the session cookies, an attacker can hijack user sessions and impersonate legitimate users, potentially gaining unauthorized access to sensitive information or performing malicious actions on behalf of the victim.

How To Fix

Latest published version: 2.12.1 as of 22 Oct 2026

pip install --upgrade "aiohttp-session==2.12.1"

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

If you need the minimum change

2.4.0

This is the first release that contains the fix.

pip install --upgrade "aiohttp-session==2.4.0"

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

Workaround

If updating the package is not immediately feasible, a temporary workaround is to avoid using RedisStorage as the session storage backend. Instead, developers can consider using other storage backends provided by aiohttp-session that are not affected by this vulnerability.

Conclusion

The aiohttp-session package is vulnerable to a Session Fixation attack when using RedisStorage as the session storage backend. Developers should update their package to version 2.4.0 or later to mitigate this vulnerability. If immediate updating is not possible, alternative storage backends can be used as a temporary workaround. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for aiohttp-session →

Share this vulnerability

FAQ

aiohttp-session is a Python package that provides session management for aiohttp web applications. It allows developers to store and retrieve session data using different storage backends.

Session Fixation is an attack where an attacker sets a user's session identifier to a known value, allowing them to hijack the user's session and potentially gain unauthorized access.

This vulnerability can be exploited by manipulating session cookies. Attackers can set session cookies using various methods, such as passing a session parameter in the URL or using meta tags or script tags with the Set-Cookie header.

The consequences of this vulnerability include session hijacking, where an attacker can impersonate legitimate users and potentially gain unauthorized access to sensitive information or perform malicious actions on behalf of the victim.

Yes, developers can fix this vulnerability by updating their aiohttp-session package to version 2.4.0 or later.

Related vulnerabilities

Recent vulnerabilities recorded for aiohttp-session.

How To Fix

Latest published version: 2.12.1 as of 22 Oct 2026

pip install --upgrade "aiohttp-session==2.12.1"

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

If you need the minimum change

2.4.0

This is the first release that contains the fix.

pip install --upgrade "aiohttp-session==2.4.0"

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