All reports
Critical

OMGF Pro <= 5.2.6 - Unauthenticated Arbitrary File Upload via @import URL Reflection

Affected versions

Affected versions
<=5.2.6
Fixed version
5.2.7

Exploitation

CVE-2026-57700

Probability of exploitation in the next 30 days: 0.52%

FIRST EPSS · 2026-11-20

Description

The OMGF Pro plugin for WordPress is vulnerable to Unrestricted File Type Upload in all versions up to, and including, 5.2.6. This is due to the ExternalStylesheets::optimize() method extracting attacker-controlled @import URLs from the rendered HTML, fetching their contents via wp_remote_get(), and writing those contents to disk via file_put_contents() at a path derived directly from the attacker-controlled URL host/path — with no file-extension allowlist, MIME check, or capability/nonce gate on the omgf_optimize and omgf_pro_auto_config GET parameters that trigger the pipeline. This makes it possible for unauthenticated attackers to upload arbitrary files (including PHP) into the uploads directory on the affected site's server which makes remote code execution possible.

Links

Credits

  • Nguyen Ngoc Duc (duc193)
  • NETZLICHT

Data rights and licenses

Wordfence

Copyright 2012-2026 Defiant Inc.

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 terms

Copyright 1999-2026 The MITRE Corporation

CVE Usage: MITRE 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 Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.

License terms