CiviCRM vulnerability
Published: Thu, 07 May 2026 07:47
Summary
CiviCRM could be made to run malicious JavaScript in the user's browser if it received specially crafted input.
Details
Takuya Aramaki discovered that Smarty, vendored in CiviCRM, did not properly escape JavaScript code. An attacker could possibly use this issue to conduct a cross-site scripting attack.
Recommended actions per Ubuntu release
StackPatch playbook auto-generated per release codename and per affected package.
Ubuntu bionic
civicrm→4.7.30+dfsg-1ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 4.7.30+dfsg-1ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y civicrm
Most apt upgrades restart their service automatically. needrestart lists anything else.
civicrm-common→4.7.30+dfsg-1ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 4.7.30+dfsg-1ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y civicrm-common
Most apt upgrades restart their service automatically. needrestart lists anything else.
civicrm-l10n→4.7.30+dfsg-1ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 4.7.30+dfsg-1ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y civicrm-l10n
Most apt upgrades restart their service automatically. needrestart lists anything else.
wordpress-civicrm→4.7.30+dfsg-1ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 4.7.30+dfsg-1ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y wordpress-civicrm
Most apt upgrades restart their service automatically. needrestart lists anything else.
Ubuntu focal
civicrm→5.21.2+dfsg-1ubuntu0.1~esm1apt_upgrade_esmFixed at 5.21.2+dfsg-1ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y civicrm=5.21.2+dfsg-1ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
civicrm-common→5.21.2+dfsg-1ubuntu0.1~esm1apt_upgrade_esmFixed at 5.21.2+dfsg-1ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y civicrm-common=5.21.2+dfsg-1ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
civicrm-l10n→5.21.2+dfsg-1ubuntu0.1~esm1apt_upgrade_esmFixed at 5.21.2+dfsg-1ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y civicrm-l10n=5.21.2+dfsg-1ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
wordpress-civicrm→5.21.2+dfsg-1ubuntu0.1~esm1apt_upgrade_esmFixed at 5.21.2+dfsg-1ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y wordpress-civicrm=5.21.2+dfsg-1ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
Ubuntu jammy
civicrm→5.33.2+dfsg1-1ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 5.33.2+dfsg1-1ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y civicrm
Most apt upgrades restart their service automatically. needrestart lists anything else.
civicrm-common→5.33.2+dfsg1-1ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 5.33.2+dfsg1-1ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y civicrm-common
Most apt upgrades restart their service automatically. needrestart lists anything else.
civicrm-l10n→5.33.2+dfsg1-1ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 5.33.2+dfsg1-1ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y civicrm-l10n
Most apt upgrades restart their service automatically. needrestart lists anything else.
wordpress-civicrm→5.33.2+dfsg1-1ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 5.33.2+dfsg1-1ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y wordpress-civicrm
Most apt upgrades restart their service automatically. needrestart lists anything else.
Ubuntu xenial
civicrm→4.7.1+dfsg-2ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 4.7.1+dfsg-2ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y civicrm
Most apt upgrades restart their service automatically. needrestart lists anything else.
civicrm-common→4.7.1+dfsg-2ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 4.7.1+dfsg-2ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y civicrm-common
Most apt upgrades restart their service automatically. needrestart lists anything else.
civicrm-l10n→4.7.1+dfsg-2ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 4.7.1+dfsg-2ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y civicrm-l10n
Most apt upgrades restart their service automatically. needrestart lists anything else.
drupal7-mod-civicrm→4.7.1+dfsg-2ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 4.7.1+dfsg-2ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y drupal7-mod-civicrm
Most apt upgrades restart their service automatically. needrestart lists anything else.
wordpress-civicrm→4.7.1+dfsg-2ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 4.7.1+dfsg-2ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y wordpress-civicrm
Most apt upgrades restart their service automatically. needrestart lists anything else.
Are YOU affected by USN-8242-1?
5-second check on your actual server. Reads /etc/os-release, uname -r, and dpkg-query; matches against the live USN + Debian Security Tracker feeds; tells you whether USN-8242-1 (and any other live CVE) applies. Anonymous, no signup.
curl https://mindsparkstack.com/scan.sh | bash
StackPatch runs this match against YOUR installed packages every hour
Free 1-server / $99 lifetime founder seat (50 only) / $19+/mo monthly. Indie pricing.