Moon Phases Security & Risk Analysis

wordpress.org/plugins/moon-phases

Adds a sidebar widget that display the current moon phase.

400 active installs v3.1.1 PHP + WP 2.8+ Updated Feb 9, 2014
astrologyastronomymoonphasephases
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Moon Phases Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 12yr ago
Risk Assessment

The 'moon-phases' plugin, version 3.1.1, presents a mixed security posture. On the positive side, it boasts a minimal attack surface with only one entry point (a shortcode) and no known CVEs, indicating a generally stable history. Furthermore, all SQL queries are properly prepared, and there are no external HTTP requests or file operations, which are common vectors for vulnerabilities.

However, significant concerns arise from the static analysis. The complete absence of output escaping on all 13 identified output points is a critical flaw, leaving the plugin highly susceptible to Cross-Site Scripting (XSS) attacks. Additionally, the presence of the `create_function` dangerous function, while not explicitly linked to a taint flow in this analysis, is a known security risk and should be avoided. The lack of nonce and capability checks on the single shortcode entry point also means that any user, regardless of their role or privilege level, could potentially trigger its functionality, although the direct impact is not clear without further code inspection.

In conclusion, while the plugin has a clean vulnerability history and good practices in SQL handling, the severe lack of output escaping and the use of a dangerous function create substantial risks. The absence of robust authorization checks on its single entry point further exacerbates these concerns. Remediation of the unescaped output and the dangerous function are paramount for improving its security.

Key Concerns

  • All outputs lack proper escaping
  • Use of dangerous function: create_function
  • Shortcode entry point without nonce/capability checks
Vulnerabilities
None known

Moon Phases Security Vulnerabilities

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

Moon Phases Code Analysis

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

Dangerous Functions Found

create_functionadd_action('widgets_init', create_function('', 'return register_widget("WP_Widget_Moon_Phases");'));moon-phases.php:503

Output Escaping

0% escaped13 total outputs
Attack Surface

Moon Phases Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[moon-phases] moon-phases.php:502
WordPress Hooks 1
actionwidgets_initmoon-phases.php:503
Maintenance & Trust

Moon Phases Maintenance & Trust

Maintenance Signals

WordPress version tested3.7.41
Last updatedFeb 9, 2014
PHP min version
Downloads19K

Community Trust

Rating100/100
Number of ratings4
Active installs400
Developer Profile

Moon Phases Developer Profile

philippe

9 plugins · 1K total installs

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

How We Detect Moon Phases

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/moon-phases/images/full_moon.png/wp-content/plugins/moon-phases/images/new_moon.png/wp-content/plugins/moon-phases/images/third_quarter_moon.png/wp-content/plugins/moon-phases/images/waxing_crescent_moon.png/wp-content/plugins/moon-phases/images/waxing_gibbous_moon.png/wp-content/plugins/moon-phases/images/waning_crescent_moon.png/wp-content/plugins/moon-phases/images/waning_gibbous_moon.png/wp-content/plugins/moon-phases/images/first_quarter_moon.png

HTML / DOM Fingerprints

Data Attributes
width="128"height="128"
Shortcode Output
<table style="border-width: thin thin thin thin; border-style: solid solid solid solid;"><thead><tr><th><center><font face="arial" size="+1"><b>Current Moon Phase</b></center></font></th></tr></thead><tbody><tr><td><br />
FAQ

Frequently Asked Questions about Moon Phases