Back to Codebase

Vulnerability Analysis Report

WordPress Core v6.6.5

Scan ID: SCAN-WORDPRESS-CORE-zSH79G • Hash: 192fc044

Severity Score
High
Total Findings
5
Engine Version
ECOMGUARD-HYBRID-AST-1.5
Scan Duration
0.999s

Vulnerability Details

L891

Potential SQL Injection in class-wp-debug-data.php

CWE-89
File Location: wp-admin/includes/class-wp-debug-data.php:891
Security Score:
94 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- $server = $wpdb->get_var( 'SELECT VERSION()' );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L203

Potential SQL Injection in export.php

CWE-89
File Location: wp-admin/export.php:203
Security Score:
90 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- $authors = $wpdb->get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'post'" );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L1598

Potential SQL Injection in class-wp-debug-data.php

CWE-89
File Location: wp-admin/includes/class-wp-debug-data.php:1598
Security Score:
89 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- $rows = $wpdb->get_results( 'SHOW TABLE STATUS', ARRAY_A );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L222

Cross-Site Scripting (XSS) in class-wp-posts-list-table.php

CWE-79
File Location: wp-admin/includes/class-wp-posts-list-table.php:222
Security Score:
89 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- echo get_post_type_object( $this->screen->post_type )->labels->not_found_in_trash;
+ echo esc_html(get_post_type_object( $this->screen->post_type )->labels->not_found_in_trash);
L1346

Cross-Site Scripting (XSS) in class-wp-posts-list-table.php

CWE-79
File Location: wp-admin/includes/class-wp-posts-list-table.php:1346
Security Score:
89 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- echo implode( wp_get_list_item_separator(), $term_links );
+ echo esc_html(implode( wp_get_list_item_separator(), $term_links ));