Home

>

Tools

>

Payload CMS

>

Releases

>

Release 0.18.3

Payload CMS Release: Release 0.18.3

Tag Name: v0.18.3

Release Date: 6/24/2022

Payload CMS LogoPayload CMS

Payload CMS is a modern, self-hosted headless content management system built with TypeScript, Node.js, and MongoDB. It's designed specifically for developers who want full control over their content management system while maintaining a powerful admin interface for content editors.

TL;DR

Payload CMS v0.18.3 fixes a critical issue with token expiration limits. This patch ensures that token expiration times are properly enforced, addressing a potential security concern for authentication systems. This is a recommended upgrade for all Payload users who rely on authentication tokens.

Highlight of the Release

    • Fixed issue #670 related to maximum token expiration limits
    • Enhanced security by ensuring proper enforcement of token expiration settings
    • Small but important patch for authentication systems

Migration Guide

No migration steps are required for this update. The fix is applied automatically when upgrading to v0.18.3.

However, if you have custom code that interacts with token creation or expiration, you may want to review it to ensure it aligns with the fixed behavior.

Upgrade Recommendations

This is a recommended upgrade for all Payload users, especially those who rely on authentication tokens in their applications.

The upgrade process should be straightforward:

npm install [email protected]
# or
yarn add [email protected]

No configuration changes or migrations are required after upgrading.

Bug Fixes

Token Expiration Fix

Fixed issue #670 where the maximum token expiration setting was not being properly enforced. This could potentially allow tokens to be created with expiration times beyond the configured maximum limit.

The fix ensures that token expiration times are properly validated against the configured maximum, improving the security and reliability of Payload's authentication system.

New Features

No new features were added in this release. This is a bug fix release focused on addressing a specific issue with token expiration.

Security Updates

Token Expiration Enforcement

This release addresses a potential security issue where token expiration limits could be bypassed. By properly enforcing the maximum token expiration setting, this fix prevents the creation of authentication tokens with excessively long lifetimes, which could pose a security risk if tokens were compromised.

While not explicitly labeled as a security fix in the release notes, this change has security implications as it relates to authentication token management.

Performance Improvements

No specific performance improvements were included in this release. The focus was on fixing the token expiration issue.

Impact Summary

This release addresses a specific issue with token expiration limits in Payload CMS. While the change is small in terms of code modifications (12 additions, 3 deletions across 3 files), it has important implications for authentication security.

The fix ensures that the tokenExpiration setting is properly enforced, preventing tokens from being created with expiration times that exceed the configured maximum. This is particularly important for maintaining proper security practices in applications that rely on authentication tokens.

For most users, this update will be transparent but provides important behind-the-scenes security improvements. The patch maintains full compatibility with existing applications and requires no configuration changes.

Full Release Notes

Statistics:

File Changed3
Line Additions12
Line Deletions3
Line Changes15
Total Commits2

User Affected:

  • Can now properly set maximum token expiration limits
  • No longer vulnerable to potential security issues related to token expiration

Contributors:

jmikrut