
JSM file_get_contents() Shortcode Security & Risk Analysis
wordpress.org/plugins/wp-file-get-contentsA safe and reliable WordPress shortcode for PHP's file_get_contents() function.
Is JSM file_get_contents() Shortcode Safe to Use in 2026?
Mostly Safe
Score 77/100JSM file_get_contents() Shortcode is generally safe to use. 2 past CVEs were resolved. Keep it updated.
The "wp-file-get-contents" plugin v2.7.1 exhibits a mixed security posture. Static analysis reveals a very small attack surface with no identified AJAX handlers, REST API routes, shortcodes, or cron events, and importantly, no unprotected entry points. The code also demonstrates good practices by exclusively using prepared statements for SQL queries and ensuring all output is properly escaped. There are no identified dangerous functions, external HTTP requests, or bundled libraries to raise immediate concern, and the taint analysis shows no critical or high severity flows.
However, the plugin's vulnerability history is a significant concern. It has a total of two known CVEs, with one currently unpatched. Both historical vulnerabilities were rated as medium severity and involved Cross-site Scripting (XSS) and Server-Side Request Forgery (SSRF). The presence of an unpatched medium-severity vulnerability, especially one that has historically included SSRF risks, presents a tangible security risk. While the current code analysis doesn't reveal these specific weaknesses, the past indicates potential for input sanitization or improper handling of external resources, which could be exploited if the underlying code has not been completely remediated or if new, related vulnerabilities emerge.
In conclusion, the plugin's code demonstrates good defensive programming in its current state, with a limited attack surface and secure handling of common vulnerabilities like SQL injection and XSS in its output. The primary weakness lies in its past and an outstanding unpatched vulnerability. Users should be aware of this history, and immediate attention should be paid to patching the known vulnerability.
Key Concerns
- Unpatched CVE
- Vulnerability history of XSS and SSRF
JSM file_get_contents() Shortcode Security Vulnerabilities
CVEs by Year
Severity Breakdown
2 total CVEs
JSM file_get_contents() Shortcode <= 2.7.1 - Authenticated (Contributor+) Stored Cross-Site Scripting
JSM file_get_contents() Shortcode <= 2.7.0 - Authenticated (Contributor+) Server-Side Request Forgery via Shortcode
JSM file_get_contents() Shortcode Code Analysis
Output Escaping
JSM file_get_contents() Shortcode Attack Surface
WordPress Hooks 2
Maintenance & Trust
JSM file_get_contents() Shortcode Maintenance & Trust
Maintenance Signals
Community Trust
JSM file_get_contents() Shortcode Alternatives
WP Custom Author URL
wp-custom-author-url
Set a custom URL for your author name link, on a global or author-specific basis. Also redirects all author pages.
Basic URL ShortCodes
basic-url-shortcodes
Provides simple shortcodes to output essential WordPress URLs inside posts, pages and widgets.
Relative URL ShortCode
relative-url-shortcode
Now its easy to change domains and keep links and images fine you just need to use this shortcode [base_url] as your base url for links and images.
Peter’s Blog URL Shortcodes
peters-blog-url-shortcodes
Use shortcodes for blog URLs, post URLs, and template URLs so that your posts always have the correct internal links.
Get Filesize Shortcode
get-filesize-shortcode
"Get Filesize Shortcode" is a simple shortcode to get filesize of a file( eg. PDF, JPG, PNG ... ).
JSM file_get_contents() Shortcode Developer Profile
31 plugins · 33K total installs
How We Detect JSM file_get_contents() Shortcode
Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.
Asset Fingerprints
/wp-content/plugins/wp-file-get-contents/assets/css/wpfgc-code-highlight.css/wp-content/plugins/wp-file-get-contents/assets/js/wpfgc-code-highlight.jsHTML / DOM Fingerprints
wpfgc-code-highlight<!-- Start: wp-file-get-contents --><!-- End: wp-file-get-contents -->data-wpfgc-content-hash<p><strong>WP_FGC: </strong><p><strong>WPFGC: