CVE-2018-1000814: aiohttp-session - Non-expiring sessions / Infinite lifespan

aiohttp-session Updated 02 Oct 2025

Summary

20/12/2018
Yes i
High
6.5

CVE-2018-1000814: aiohttp-session creates non-expiring sessions. Affects aiohttp-session versions < 2.7.0. Fixed in 2.7.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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

aiohttp-session is a Python package that provides session support for aiohttp web applications. It allows developers to manage user sessions and store session data. The package is widely used in Python web development projects.

Vulnerability Detail

The vulnerability, identified as CVE-2018-1000814, affects aiohttp-session versions 2.6.0 and earlier. It specifically impacts the EncryptedCookieStorage and NaClCookieStorage components of the package. The vulnerability allows for non-expiring sessions or infinite lifespan. An attacker can recreate a cookie with the same value after its expiry, resulting in sessions that never expire. This vulnerability can be exploited to maintain unauthorized access to user sessions and potentially compromise user data.

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.7.0

This is the first release that contains the fix.

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

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

Workaround

There is no known workaround for this vulnerability. It is essential to update to the fixed version of aiohttp-session to ensure the security of user sessions.

Conclusion

The vulnerability in aiohttp-session can lead to non-expiring sessions and potential unauthorized access to user data. It is recommended to update to version 2.7.0 or later to mitigate this issue. For further support on 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 support for aiohttp web applications. It allows developers to manage user sessions and store session data.

Versions 2.6.0 and earlier of aiohttp-session are affected by this vulnerability.

The vulnerability allows for non-expiring sessions or infinite lifespan. An attacker can recreate a cookie with the same value after its expiry, resulting in sessions that never expire. This can lead to unauthorized access and potential compromise of user data.

To fix this vulnerability, update aiohttp-session to version 2.7.0 or later.

There is no known workaround for this vulnerability. It is crucial to update to the fixed version of aiohttp-session.

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.7.0

This is the first release that contains the fix.

pip install --upgrade "aiohttp-session==2.7.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