Intel

AIKIDO-2026-846484

simple_calendar is vulnerable to Cross-Site Scripting (XSS)

GHSA-45x6-w2pm-387cPublished Oct 19, 2026
October 19, 2026

61

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

simple_calendar passes the current request's params into Rails' url_for when building the Previous, Today, and Next links. url_for uses keys such as host, protocol, original_script_name, and use_route as URL generation options rather than query params, so a request that includes those params changes the navigation links' host, protocol, or scheme, embeds a javascript: URL leading to XSS, triggers an open redirect, or causes a 500 error. The fix expands PARAM_KEY_BLACKLIST in lib/simple_calendar/calendar.rb to strip these URL option keys before they reach url_for.

How do I fix this?

Upgrade the simple_calendar library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

0.0.1 - 3.1.1

Fixed in 3.1.2

Background info

simple_calendar is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 3.1.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea