CodePen Embedded Pens Shortcode Security & Risk Analysis

wordpress.org/plugins/codepen-embedded-pen-shortcode

Allows the use of a special shortcode [codepen_embed] for embedding Pens from CodePen.

900 active installs v1.0.3 PHP + WP 2.6+ Updated Oct 1, 2024
91
A · Safe
CVEs total2
Unpatched0
Last CVEOct 24, 2024
Download
Safety Verdict

Is CodePen Embedded Pens Shortcode Safe to Use in 2026?

Generally Safe

Score 91/100

CodePen Embedded Pens Shortcode has a strong security track record. Known vulnerabilities have been patched promptly.

2 known CVEsLast CVE: Oct 24, 2024Updated 1yr ago
Risk Assessment

The "codepen-embedded-pen-shortcode" plugin version 1.0.3 exhibits a mixed security posture. On the positive side, static analysis reveals excellent coding practices in several areas. There are no detected dangerous functions, all SQL queries utilize prepared statements, and all detected outputs are properly escaped. Furthermore, there are no file operations or external HTTP requests, which minimizes potential attack vectors. The plugin also has a very small attack surface with only one shortcode and no AJAX handlers or REST API routes exposed without authentication.

However, a significant concern arises from its vulnerability history. The plugin has two known medium-severity vulnerabilities, both related to Cross-Site Scripting (XSS). The fact that these vulnerabilities exist, even if currently unpatched, indicates potential weaknesses in how user-supplied data is handled. The absence of nonce checks and capability checks, while acceptable for a plugin with a minimal attack surface and no apparent direct user input handling that requires strict authorization, could become a problem if the plugin's functionality or input handling were to evolve.

In conclusion, while the current version of "codepen-embedded-pen-shortcode" demonstrates strong secure coding principles in its static analysis, its past XSS vulnerabilities are a notable weakness. Users should be aware of this history and ensure they are running the latest patched version if available, or consider the potential for future vulnerabilities if the plugin's development does not adequately address past issues. The lack of specific authorization checks on its single entry point is a minor concern given its current limited functionality.

Key Concerns

  • 2 known medium vulnerabilities (XSS)
  • 0 nonce checks
  • 0 capability checks
Vulnerabilities
2

CodePen Embedded Pens Shortcode Security Vulnerabilities

CVEs by Year

2 CVEs in 2024
2024
Patched Has unpatched

Severity Breakdown

Medium
2

2 total CVEs

CVE-2024-50440medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CodePen Embedded Pens Shortcode <= 1.0.2 - Authenticated (Contributor+) Stored Cross-Site Scripting

Oct 24, 2024 Patched in 1.0.3 (7d)
CVE-2024-37960medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CodePen Embedded Pens Shortcode <= 1.0.0 - Authenticated (Contributor+) Stored Cross-Site Scripting

Jul 10, 2024 Patched in 1.0.1 (10d)
Code Analysis
Analyzed Mar 16, 2026

CodePen Embedded Pens Shortcode Code Analysis

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

Output Escaping

100% escaped8 total outputs
Attack Surface

CodePen Embedded Pens Shortcode Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[codepen_embed] codepen.php:76
WordPress Hooks 2
actionadmin_menucodepen.php:89
actionadmin_initcodepen.php:90
Maintenance & Trust

CodePen Embedded Pens Shortcode Maintenance & Trust

Maintenance Signals

WordPress version tested6.6.5
Last updatedOct 1, 2024
PHP min version
Downloads33K

Community Trust

Rating86/100
Number of ratings6
Active installs900
Alternatives

CodePen Embedded Pens Shortcode Alternatives

No alternatives data available yet.

Developer Profile

CodePen Embedded Pens Shortcode Developer Profile

Chris Coyier

2 plugins · 2K total installs

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

How We Detect CodePen Embedded Pens Shortcode

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

Asset Fingerprints

Script Paths
https://cpwebassets.codepen.io/assets/embed/ei.js

HTML / DOM Fingerprints

CSS Classes
codepen
Data Attributes
data-heightdata-theme-iddata-slug-hashdata-default-tabdata-animationsdata-editable+2 more
Shortcode Output
<p class='codepen'The content of the shortcode is escaped HTML and stripped of tags, so it's safe to render directly.
FAQ

Frequently Asked Questions about CodePen Embedded Pens Shortcode