JavaScript Shortcode Security & Risk Analysis

wordpress.org/plugins/javascript-shortcode

Adds a shortcode to allow you to add javascript on any page, post, or customer post type in the editor

10 active installs v1.0 PHP + WP 2.8+ Updated Jul 18, 2012
javascriptshortcode
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is JavaScript Shortcode Safe to Use in 2026?

Generally Safe

Score 85/100

JavaScript Shortcode has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 13yr ago
Risk Assessment

The "javascript-shortcode" plugin v1.0 demonstrates a generally strong security posture based on the provided static analysis and vulnerability history. The absence of known CVEs and a clean slate regarding critical or high-severity vulnerabilities over time is a positive indicator. Furthermore, the code analysis shows no dangerous functions, all SQL queries utilize prepared statements, and all identified outputs are properly escaped. There are also no file operations or external HTTP requests to consider, and importantly, no taint analysis revealed any unsanitized paths. This suggests a thoughtful approach to secure coding practices.

However, a significant area of concern lies in the lack of any observed capability checks or nonce checks, despite the presence of a shortcode which serves as an entry point. While the current analysis indicates zero unprotected entry points, the absence of these crucial security mechanisms means that the shortcode's functionality is likely accessible to any user role, potentially exposing it to unauthorized execution if its intended behavior is sensitive or could be misused. The vulnerability history, while currently clean, only reflects past activity and does not guarantee future security. The plugin's strengths lie in its apparent avoidance of common coding pitfalls like SQL injection and cross-site scripting, but the absence of authorization checks on its sole entry point is a notable weakness.

Key Concerns

  • Missing capability checks on entry points
  • Missing nonce checks on entry points
Vulnerabilities
None known

JavaScript Shortcode Security Vulnerabilities

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

JavaScript Shortcode Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
0
0 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0
Attack Surface

JavaScript Shortcode Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[javascript] javascript-shortcode.php:16
WordPress Hooks 1
actionwp_print_footer_scriptsjavascript-shortcode.php:46
Maintenance & Trust

JavaScript Shortcode Maintenance & Trust

Maintenance Signals

WordPress version tested2.8
Last updatedJul 18, 2012
PHP min version
Downloads2K

Community Trust

Rating20/100
Number of ratings2
Active installs10
Developer Profile

JavaScript Shortcode Developer Profile

kegentile

4 plugins · 170 total installs

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

How We Detect JavaScript Shortcode

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/javascript-shortcode/javascript-shortcode.php

HTML / DOM Fingerprints

FAQ

Frequently Asked Questions about JavaScript Shortcode