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: aio-libs aiohttp-session version 2.6.0 and earlier contains a Other/Unknown vulnerability in EncryptedCookieStorage and NaClCookieStorage that can result in Non-expiring sessions / Infinite lifespan. 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 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 support for aiohttp web applications. It allows developers to manage user sessions and store session data securely. The package utilizes different storage options, including EncryptedCookieStorage and NaClCookieStorage, to store session information. These storage options use cookies to maintain session state between client and server.

Vulnerability Detail

The vulnerability (CVE-2018-1000814) in aiohttp-session versions 2.6.0 and earlier lies in the EncryptedCookieStorage and NaClCookieStorage implementations. It allows for non-expiring sessions or infinite lifespan. An attacker can exploit this vulnerability by recreating a cookie with the same value after its expiry. This means that even after a session should have expired, an attacker can continue to use the same session indefinitely, potentially gaining unauthorized access or performing malicious actions on behalf of the user.

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 specific workaround mentioned for this vulnerability.

Conclusion

The vulnerability in aiohttp-session versions 2.6.0 and earlier allows for non-expiring sessions or infinite lifespan. Upgrading to version 2.7.0 or later is recommended to fix this issue. For further support on vulnerability remediation, you can 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 securely.

The vulnerability allows for non-expiring sessions or infinite lifespan. An attacker can continue to use the same session even after it should have expired, potentially gaining unauthorized access or performing malicious actions on behalf of the user.

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

No specific workarounds have been mentioned for this vulnerability.

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