WP API SwaggerUI Security & Risk Analysis

wordpress.org/plugins/wp-api-swaggerui

WordPress REST API with Swagger UI.

2K active installs v1.1.2 PHP 5.4+ WP 4.7+ Updated Jul 10, 2022
swaggeruiswaggerui-rest-apiwp-swagger-rest-apiwp-swaggeruiwp-rest-api
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is WP API SwaggerUI Safe to Use in 2026?

Generally Safe

Score 85/100

WP API SwaggerUI has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 3yr ago
Risk Assessment

The wp-api-swaggerui v1.1.2 plugin exhibits a generally strong security posture based on the provided static analysis and vulnerability history. The absence of any recorded CVEs, coupled with the fact that all SQL queries utilize prepared statements and there are no identified taint flows, suggests a robust approach to secure coding. The plugin also demonstrates good practices by including nonce and capability checks, indicating an awareness of common WordPress security vulnerabilities.

However, the static analysis does reveal a potential area of concern regarding output escaping. With 13 total outputs and approximately 77% properly escaped, there's a possibility that a portion of the plugin's output might not be sufficiently sanitized. While the taint analysis didn't flag any unsanitized paths, the incomplete escaping could, under specific circumstances or in conjunction with other factors, lead to cross-site scripting (XSS) vulnerabilities if user-supplied data is directly echoed without proper sanitization. The limited attack surface (0 entry points) is a significant strength, but the incomplete output escaping warrants attention.

In conclusion, wp-api-swaggerui v1.1.2 appears to be a relatively secure plugin with no known critical vulnerabilities. Its strengths lie in the lack of historical vulnerabilities and the secure handling of database interactions. The primary area for improvement and a minor security concern is the incomplete output escaping, which, though not currently exploited or flagged as critical, represents a potential weak point that should be addressed to achieve a fully hardened security profile.

Key Concerns

  • Incomplete output escaping
Vulnerabilities
None known

WP API SwaggerUI Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

WP API SwaggerUI Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
2 prepared
Unescaped Output
3
10 escaped
Nonce Checks
1
Capability Checks
1
File Operations
0
External Requests
0
Bundled Libraries
0

SQL Query Safety

100% prepared2 total queries

Output Escaping

77% escaped13 total outputs
Data Flows
All sanitized

Data Flow Analysis

2 flows
saveSetting (swaggersetting.php:9)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

WP API SwaggerUI Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 13
filterdetermine_current_userswaggerauth.php:40
filterdetermine_current_userswaggerauth.php:96
filterauthenticateswaggerauth.php:97
filterrest_authentication_errorsswaggerauth.php:98
filterswagger_api_security_definitionsswaggerauth.php:99
actionadmin_noticesswaggersetting.php:17
actionadmin_menuswaggersetting.php:52
actioninitswaggersetting.php:53
actiontemplate_includeswaggertemplate.php:78
actionwp_enqueue_scriptsswaggertemplate.php:79
actionwp_enqueue_scriptsswaggertemplate.php:80
actioninitwp-api-swaggerui.php:458
actionwpwp-api-swaggerui.php:459
Maintenance & Trust

WP API SwaggerUI Maintenance & Trust

Maintenance Signals

WordPress version tested5.9.13
Last updatedJul 10, 2022
PHP min version5.4
Downloads63K

Community Trust

Rating100/100
Number of ratings11
Active installs2K
Developer Profile

WP API SwaggerUI Developer Profile

agussuroyo

1 plugin · 2K total installs

84
trust score
Avg Security Score
85/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect WP API SwaggerUI

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/wp-api-swaggerui/css/swagger-ui.css/wp-content/plugins/wp-api-swaggerui/js/swagger-ui-bundle.js/wp-content/plugins/wp-api-swaggerui/js/swagger-ui-standalone-preset.js/wp-content/plugins/wp-api-swaggerui/css/style.css/wp-content/plugins/wp-api-swaggerui/js/wp-api-swaggerui.js
Script Paths
/wp-content/plugins/wp-api-swaggerui/js/swagger-ui-bundle.js/wp-content/plugins/wp-api-swaggerui/js/swagger-ui-standalone-preset.js/wp-content/plugins/wp-api-swaggerui/js/wp-api-swaggerui.js
Version Parameters
wp-api-swaggerui/css/swagger-ui.css?ver=wp-api-swaggerui/js/swagger-ui-bundle.js?ver=wp-api-swaggerui/js/swagger-ui-standalone-preset.js?ver=wp-api-swaggerui/css/style.css?ver=wp-api-swaggerui/js/wp-api-swaggerui.js?ver=

HTML / DOM Fingerprints

CSS Classes
swagger-ui
Data Attributes
data-swagger-url
JS Globals
SwaggerUIBundleSwaggerUIStandalonePresetwpApiSwaggerUI
REST Endpoints
/wp-json/swagger/v1/schema
FAQ

Frequently Asked Questions about WP API SwaggerUI