# Before After Image Comparison – Visual Comparison for Two Images <= 1.1.21 - Authenticated (Contributor+) Sensitive Information Exposure via 'baicb' Shortcode

- **ID:** WPSEC-2026-1212
- **Plugin:** Before After Image Comparison – Visual Comparison for Two Images (`before-after-image-compare`), https://wordpress.org/plugins/before-after-image-compare/
- **Affected versions:** from 1.1.15 before 1.1.22
- **Fixed in:** 1.1.22 (Update to 1.1.22 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-200
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-10-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/before-after-image-compare
- **Fix released:** 2026-10-17
- **Published:** 2026-10-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1212/

## Description

The Before After Image Comparison plugin for WordPress is vulnerable to Sensitive Information Exposure via the 'baicb' shortcode in all versions from 1.1.15 up to, and including, 1.1.21. This is due to the shortcode loading and rendering the first block of any post by its ID without checking the post type, the post status, or whether the current user can read the post. This makes it possible for authenticated attackers, with contributor-level access and above, to view the first block of private, draft, or pending posts of any post type that they should not have access to.

## References

- https://wpsec.com/vuln/WPSEC-2026-1212/
- https://plugins.svn.wordpress.org/before-after-image-compare/tags/1.1.22/
- https://wordpress.org/plugins/before-after-image-compare/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-1212/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
