Home

>

Tools

>

WordPress

>

Releases

>

3.8.22

WordPress Release: 3.8.22

Tag Name: 3.8.22

Release Date: 9/19/2017

WordPress LogoWordPress

World's most popular open-source content management system powering over 40% of all websites. Offers extensive plugin ecosystem, themes, and robust community support for blogs, e-commerce, and corporate websites. Highly customizable and scalable platform suitable for beginners and advanced developers.

TL;DR

WordPress 3.8.22 is a security-focused maintenance release that addresses several vulnerabilities across the platform. This update includes critical security fixes for the editor, database handling, filesystem API, and user management components. The release primarily focuses on hardening WordPress against potential exploits and improving input validation throughout the system.

Highlight of the Release

    • Blocked javascript: and data: URL schemes in the inline link dialog to prevent XSS attacks
    • Improved URL encoding and hardening for plugin and template names in admin areas
    • Enhanced security in the filesystem API to validate filenames before unzipping
    • Multiple database security improvements for wpdb::prepare()

Migration Guide

No specific migration steps are required for this update. This is a security maintenance release that should be applied as soon as possible to all WordPress 3.8 installations.

However, developers should note the changes to wpdb::prepare() behavior:

  • The function now strictly enforces the documented placeholder formats (%s, %d, and %F)
  • When passing arrays of values for placeholders, additional values will now be ignored
  • While null values are still not officially supported, the function no longer triggers _doing_it_wrong() for null values to maintain compatibility with existing plugins

Upgrade Recommendations

Immediate Upgrade Recommended

This release contains important security fixes that protect your WordPress installation from potential vulnerabilities. All WordPress users running version 3.8.x should upgrade immediately to version 3.8.22.

For users on newer major versions of WordPress, these security fixes have likely been incorporated into your branch's latest security release. However, if you're still running WordPress 3.8, updating to 3.8.22 is critical for maintaining site security.

Bug Fixes

Security-Related Bug Fixes

  • Fixed an issue in the editor that allowed adding potentially malicious javascript: and data: URLs through the inline link dialog
  • Added a fallback mechanism for incorrect HTTP referrers in user management
  • Fixed improper URL encoding of plugin and template names in admin displays
  • Addressed potential path traversal vulnerabilities in the filesystem API by validating filenames before unzipping
  • Fixed URL escaping issues in user management functions

New Features

No new features were added in this release. WordPress 3.8.22 is primarily a security maintenance release focused on addressing vulnerabilities and hardening the platform against potential exploits.

Security Updates

Security Enhancements

  • Editor Security: Prevented the addition of potentially dangerous javascript: and data: URLs through the inline link dialog, closing a potential XSS vulnerability
  • Admin Area Hardening: Added proper URL-encoding and extra hardening to plugin and template names when displayed in the admin area
  • Filesystem Protection: Enhanced security by ensuring filenames are valid before attempting to unzip them, preventing potential path traversal attacks
  • Database Query Protection: Multiple improvements to wpdb::prepare():
    • Restricted additional values when arrays are passed for placeholders
    • Improved handling of placeholder formats to strictly enforce %s, %d, and %F as documented
    • Added proper escaping for any non-escaped % characters in queries
  • User Management: Implemented proper URL escaping functions and added a fallback for incorrect HTTP referrers

Performance Improvements

No specific performance improvements were included in this release. The focus was primarily on security enhancements and bug fixes.

Impact Summary

WordPress 3.8.22 is a security-focused maintenance release that addresses multiple vulnerabilities across different components of the platform. The update primarily focuses on hardening WordPress against XSS attacks, path traversal exploits, and SQL injection vulnerabilities.

The most significant changes include preventing potentially malicious URL schemes in the editor, improving filename validation in the filesystem API, and enhancing the security of database queries through the wpdb::prepare() function. These changes collectively improve WordPress's resistance to common web application attacks.

For developers, the most notable changes are in the database layer, where wpdb::prepare() now more strictly enforces its documented behavior regarding placeholders. While this might affect some edge cases in plugin development, the changes maintain backward compatibility where possible while improving overall security.

This release contains no new features or performance improvements, as it is focused exclusively on security enhancements. All WordPress 3.8 users should update immediately to protect their sites from potential exploits.

Statistics:

File Changed14
Line Additions124
Line Deletions36
Line Changes160
Total Commits10

User Affected:

  • Enhanced security for plugin and template management in admin areas
  • Improved protection against malicious file uploads
  • More secure database query handling

Contributors:

ocean90johnbillionaaroncampbell