Unauthenticated SQL injection in Video Gallery WordPress plugin
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
The Video Gallery (Vimeo and YouTube Gallery) plugin for WordPress by origincode is affected in all versions up to and including 1.1.7. The plugin places the client IP header value (HTTP_CLIENT_IP, falling back to HTTP_X_FORWARDED_FOR) into an SQL query after insufficient escaping and without a prepared statement, which is SQL injection (CWE-89). An unauthenticated remote attacker can append SQL queries to existing ones and use time-based responses to extract sensitive information from the database.
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
Description from the CNA
The Video Gallery – Vimeo and YouTube Gallery plugin for WordPress is vulnerable to time-based SQL Injection via the 'HTTP_CLIENT_IP (fallback HTTP_X_FORWARDED_FOR)' parameter in all versions up to, and including, 1.1.7 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The vulnerable INSERT branch is only reached when the supplied IP address and video ID combination has not been previously recorded; an attacker can trivially satisfy this condition by supplying a novel header value.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| origincode | Video Gallery – Vimeo and YouTube Gallery | up to 1.1.7 | — | No fix listed | CNA |
- Video Gallery – Vimeo and YouTube Gallery Vendororigincode Affected up to 1.1.7 Fixed in — No fix listed CNA
Remediation
The sources list no fixed version for Video Gallery (Vimeo and YouTube Gallery).
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
Timeline
- 2026-12-02 Threatist record created from CVE-2026-135643
- 2026-12-02 Alias added: GHSA-cwm4-wf4p-f53p
References
Other 4
- https://www.wordfence.com/threat-intel/vulnerabilities/id/50d69bfe-edd2-415f-a598-7e1d191c2a07?source=cve
- https://plugins.trac.wordpress.org/browser/smart-grid-gallery/tags/1.1.7/includes/functions/parameters.php#L408
- https://plugins.trac.wordpress.org/browser/smart-grid-gallery/tags/1.1.7/includes/view/class-ajax-call.php#L35
- https://plugins.trac.wordpress.org/browser/smart-grid-gallery/tags/1.1.7/includes/view/class-ajax-call.php#L623
More origincode vulnerabilities
- TI-2025-21799 WordPress Product Catalog plugin <= 1.0.4 - SQL Injection vulnerability CVSS 3.1CRITICAL 9.3
- TI-2025-30675 WordPress Video Gallery – Vimeo and YouTube Gallery plugin <= 1.1.7 - Cross Site Scripting (XSS) vulnerability CVSS 3.1MEDIUM 6.5
- TI-2021-06802 Video Gallery - Vimeo and YouTube Gallery < 1.1.5 - Admin+ Stored Cross-Site Scripting CVSS 3.1MEDIUM 4.8
- TI-2021-03241 WordPress Photo Gallery – Image Gallery <= 1.0.6 - Cross-Site Request Forgery Bypass CVSS 3.1MEDIUM 4.3
Sources
- CVE-2026-135643 · CVE Program
- CVE-2026-135643 · NVD
- GHSA-cwm4-wf4p-f53p · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences