{"summary":{"plugin_name":"scripts-n-styles","display_name":"Scripts n Styles","version":"3.5.8","risk_level":"critical","risk_score":75.0,"risk_factors":{"staleness":30,"static_analysis":5,"owasp":5,"attack_surface":10,"unauth_ratio":5,"vuln_history":5,"superglobal_density":15},"last_analyzed":"2026-11-23T10:45:15.986897","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":30000,"rating":88,"num_ratings":30,"tested":"6.2.8","requires":"5.0","requires_php":"7.4","author":"WraithKenny","short_description":"This plugin allows Admin users to individually add HTML, custom CSS, Classes and JavaScript directly to Post, Pages or any other custom post types.","tags":["admin","code","css","custom","javascript"],"added":"2010-09-04","last_updated":"2023-06-06 7:13pm GMT","metadata_fetched_at":null,"modules_missing":null,"modules_failed":null,"latest_release":null},"security_metrics":{"total_issues":7,"parameters_found":25,"unknown_parameters":2,"headers_accessed":0,"cookies_accessed":0,"wp_hooks":12,"rest_routes":0,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":1,"A03":8,"A06":1},"attack_surface_level":"medium","attack_surface_score":37,"tainted_sinks":13,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":1},"comparison":{"percentile":14.0,"rank":1379,"peer_count":1603,"better_than":14.0,"risk_distribution":{"medium":455,"high":764,"low":209,"critical":86,"minimal":89}},"executive_summary":"The scripts‑n‑styles plugin, currently at version 3.5.8, is listed as medium risk with a score of 45.0, but its last update was 2.2 years ago, which elevates its threat level to high because unpatched vulnerabilities may exist. With no actively exploited vulnerabilities reported, the main concern is a potential site compromise or data breach that could affect compliance and business operations. The plugin’s long‑standing lack of maintenance and high code complexity increase the likelihood of undiscovered security gaps, making it a significant risk to business continuity.","vulnerabilities":[{"id":"df254420-9024-4129-bc46-a57e22161262","title":"Scripts n Styles < 3.5.8 - Admin+ Stored XSS","created_at":"2023-06-12T19:24:01.000Z","updated_at":"2023-06-12T19:24:01.000Z","published_date":"2023-05-18T00:00:00.000Z","vuln_type":"XSS","references":{"cve":["2023-31236"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"3.5.8","introduced_in":null},{"id":"e580cbce-1eac-4988-840c-935d51fb863c","title":"Scripts n Styles <= 3.5.8 - Missing Authorization","created_at":"2026-10-09T15:30:38.000Z","updated_at":"2026-10-09T15:30:38.000Z","published_date":"2026-10-09T00:00:00.000Z","vuln_type":"NO AUTHORISATION","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/09168f7b-4789-48c8-93d8-99b0d0eb8c53"],"cve":["2026-62042"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":null,"introduced_in":null}],"recommendations":[{"category":"A03","name":"Injection","severity":"critical","findings_count":8,"description":"User-supplied data is not validated, filtered, or sanitized by the application","recommendations":["Use $wpdb->prepare() for all database queries — never interpolate or concatenate input","Sanitize all user input with appropriate WordPress functions","Escape output based on context (esc_html, esc_attr, etc.)","Never pass user input to eval(), include/require, or a variable function"],"findings_summary":["phpcs_security: Easy XSS detected because of direct user input with $_REQUEST on echo","phpcs_security: Easy XSS detected because of direct user input with $_REQUEST on echo","phpcs_security: Easy XSS detected because of direct user input with $_REQUEST on echo","phpcs_security: Easy XSS detected because of direct user input with $_REQUEST on echo","phpcs_security: Easy XSS detected because of direct user input with $_REQUEST on echo"]},{"category":"A01","name":"Broken Access Control","severity":"medium","findings_count":1,"description":"Access control enforces policy such that users cannot act outside of their intended permissions","recommendations":["Add a real permission_callback to every REST route — never '__return_true' for state-changing endpoints","Verify nonces on all wp_ajax_nopriv_ handlers and re-check capabilities server-side","Validate and canonicalize file paths to block traversal on read/write/delete operations","Never trust a user-supplied role/capability — enforce it against the acting user's own permissions"],"findings_summary":["Pattern 'nopriv_no_nonce' x1 - Nopriv AJAX handler without nonce verification (1 occurrence(s))"]},{"category":"A06","name":"Vulnerable and Outdated Components","severity":"low","findings_count":1,"description":"Using components with known vulnerabilities, or shipping releases that are stale on the upstream directory","recommendations":["Update the plugin to its latest stable release","Replace components that are no longer maintained upstream","Subscribe to vulnerability feeds for plugins you depend on (WPScan, Wordfence)","Audit bundled JS/PHP libraries for known CVEs"],"findings_summary":["Stale component: last updated 2023-06-06 7:13pm GMT (1079 days ago)"]}],"owasp_findings":{"A01":[{"type":"pattern_match","pattern":"nopriv_no_nonce","count":1,"severity":"high","examples":["scripts-n-styles.php:128"],"risk":"Nopriv AJAX handler without nonce verification (1 occurrence(s))"}],"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/scripts-n-styles/tags/3.5.8/includes/class-sns-ajax.php","line":166},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/scripts-n-styles/tags/3.5.8/includes/class-sns-ajax.php","line":167},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/scripts-n-styles/tags/3.5.8/includes/class-sns-ajax.php","line":197},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/scripts-n-styles/tags/3.5.8/includes/class-sns-ajax.php","line":198},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/scripts-n-styles/tags/3.5.8/includes/class-sns-ajax.php","line":228},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/scripts-n-styles/tags/3.5.8/includes/class-sns-ajax.php","line":229},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/scripts-n-styles/tags/3.5.8/includes/class-sns-ajax.php","line":258},{"type":"reachability_sink","sink":"file_include","count":1,"risk":"1 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"}],"A06":[{"type":"stale_component","last_updated":"2023-06-06 7:13pm GMT","age_days":1079,"risk":"Plugin has not been updated upstream in 2+ years (1079 days) — increased risk of unpatched vulnerabilities"}]}}