Home

Description

The HM Books Gallery plugin for WordPress is vulnerable to Missing Authorization in versions up to and including 4.8.0. This is due to the absence of capability checks and nonce verification in the admin_init hook that handles the permalink settings update at line 205-209 of wp-books-gallery.php. The vulnerable code checks only for the presence of the 'permalink_structure' POST parameter before updating the 'wbg_cpt_slug' option, without verifying that the request comes from an authenticated administrator. This makes it possible for unauthenticated attackers to modify the custom post type slug for the books gallery, which changes the URL structure for all book entries and can break existing links and SEO rankings.

PUBLISHED Reserved 2026-04-01 | Published 2026-04-24 | Updated 2026-04-24 | Assigner Wordfence




MEDIUM: 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Problem types

CWE-862 Missing Authorization

Product status

Default status
unaffected

Any version
affected

Timeline

2026-04-03:Vendor Notified
2026-04-23:Disclosed

Credits

Abhirup Konwar finder

References

www.wordfence.com/...-cd55-4771-b2bb-597797b1b949?source=cve

plugins.trac.wordpress.org/...ery/trunk/wp-books-gallery.php

plugins.trac.wordpress.org/...ags/4.7.8/wp-books-gallery.php

plugins.trac.wordpress.org/...ery/trunk/wp-books-gallery.php

plugins.trac.wordpress.org/...ags/4.7.8/wp-books-gallery.php

plugins.trac.wordpress.org/...ags/4.8.1/wp-books-gallery.php

cve.org (CVE-2026-5347)

nvd.nist.gov (CVE-2026-5347)

Download JSON