Terser < 4.8.1 and 5.0.0-5.14.1 - Regular Expression Denial of Service

Inefficient Regular Expression Complexity
CVE CVE-2022-25858
CVSS Medium (5.3)
Publicly Published July 15, 2022
Last Updated January 22, 2024
Description

The package terser before 4.8.1, from 5.0.0 and before 5.14.2 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure usage of regular expressions. As this package is used in some WordPress plugins, this could result in the impacted plugins being vulnerable.

References

4 affected software package

Software Type Plugin
Software Slug publisher-media-kit (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 1.2.1
Patched Version
  • 1.3.0
Software Type Plugin
Software Slug retro-winamp-block (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 1.1.0
Patched Version
  • 1.2.0
Software Type Plugin
Software Slug maps-block-apple (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 1.0.3
Patched Version
  • 1.1.0
Software Type Plugin
Software Slug autoshare-for-twitter (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 1.1.2
Patched Version
  • 1.2.0
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.