Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
ServiceNow-CVE-2025-11449-CVE-2025-11450-Mitigation-Script — Automated detection and remediation of ServiceNow UI Macro vulnerabilities (CVE-2025-11449, CVE-2025-11450) by encoding sysparm_ parameters to prevent XSS attacks. | Kitploit
Tools/GitHubGitHub/danielmadsendk/servicenow-cve-2025-11449-cve-2025-11450-mitigation-script
Vulnerability AnalysisScripting & AutomationConfiguration AuditingWeb SecurityDevSecOps
GitHubdanielmadsendk/servicenow-cve-2025-11449-cve-2025-11450-mitigation-script

ServiceNow-CVE-2025-11449-CVE-2025-11450-Mitigation-Script

Automated detection and remediation of ServiceNow UI Macro vulnerabilities (CVE-2025-11449, CVE-2025-11450) by encoding sysparm_ parameters to prevent XSS attacks.

View Repository
391 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    593
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    371
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    336
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    326
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    322

Explore all tools

Browse our collection of tools

View all tools →
Share

ServiceNow CVE-2025-11449 & CVE-2025-11450 Mitigation Script

Overview

This script automatically detects and remediates CVE-2025-11449 and CVE-2025-11450 security vulnerabilities in ServiceNow UI Macros. These vulnerabilities could allow arbitrary code execution in users' browsers through specially crafted links if user-controlled sysparm_ parameters are not properly sanitized.

Affected UI Macros

  • $pwd_verify_email
  • $pwd_verify_personal_data_ui

What This Script Does

The script performs two key security fixes:

1. Outside <g:evaluate> Blocks: Adds proper encoding

Replaces vulnerable patterns with properly encoded versions:

  • ${sysparm_<XYZ>} → ${JS,HTML:sysparm_<XYZ>}
  • ${HTML:sysparm_<XYZ>} → ${JS,HTML:sysparm_<XYZ>}
  • ${JS:sysparm_<XYZ>} → ${JS,HTML:sysparm_<XYZ>}

2. Inside <g:evaluate> Blocks: Uses Jelly variable references

Replaces string interpolation with safe Jelly object references:

  • "${sysparm_<XYZ>}" → jelly.sysparm_<XYZ> (removes quotes!)
  • ${HTML:sysparm_<XYZ>} → jelly.sysparm_<XYZ>
  • Even ${JS,HTML:sysparm_<XYZ>} → jelly.sysparm_<XYZ> (still unsafe inside <g:evaluate>)

Usage

Prerequisites

  • ServiceNow instance with admin access
  • Access to Scripts - Background module

Instructions

  1. Backup First!

    // Export your current UI Macros before running this script
    // Navigate to: System UI > UI Macros
    // Export: $pwd_verify_email and $pwd_verify_personal_data_ui
    
  2. Run the Detection Script

    • Navigate to System Definition > Scripts - Background
    • Copy and paste the script from CVE_2025_11449_fix.js
    • Click Run script
  3. Review the Output

    • The script will log all vulnerabilities found
    • Review the "Suggested Cured XML" output
    • Verify the changes are appropriate for your environment
  4. Apply the Fix

    • Manual Application (Recommended): Copy the cured XML and manually update the UI Macro
  5. Test Thoroughly

    • Test password reset flows
    • Verify email verification processes
    • Ensure no functionality is broken

Example Output

AFFECTED Macro: $pwd_verify_personal_data_ui (sys_id: abc123...) [ACTIVE - HIGH PRIORITY]
Found 8 vulnerable sysparm_ pattern(s) outside <g:evaluate>:
  - ${HTML:sysparm_verification_id}
  - ${HTML:sysparm_verification_id}
  - ${HTML:sysparm_verification_id}
  - ${HTML:sysparm_verification_id}
  - ${HTML:sysparm_verification_id}
  ... and 3 more
Found 1 vulnerable sysparm_ pattern(s) inside <g:evaluate>:
  - "${sysparm_verification_id}"

Suggested Cured XML:
[Fixed XML output here]
---

Customize for Other Macros

To check additional UI Macros, modify line 3:

var macrosToCheck = ['$pwd_verify_email', '$pwd_verify_personal_data_ui', 'your_custom_macro'];

Security Impact

CRITICAL: These vulnerabilities allow Cross-Site Scripting (XSS) attacks that could:

  • Execute arbitrary JavaScript in user browsers
  • Steal session tokens and credentials
  • Perform actions on behalf of authenticated users
  • Compromise password reset flows

Contributing

Found an issue or have an improvement? Please:

  1. Open an issue with details
  2. Submit a pull request with test cases
  3. Report false positives/negatives

References

  • ServiceNow Security Advisory - CVE-2025-11449 and CVE-2025-11450
  • Jelly escaping ServiceNow documentation)

License

MIT License - Feel free to use, modify, and distribute.

Disclaimer

Use at your own risk! Always:

  • Test in a sub-production environment first
  • Back up your UI Macros before applying changes
  • Review the generated XML manually
  • Understand the security implications

This script is provided as-is without warranty. The author is not responsible for any damage or issues caused by its use.

Author

The script was generated by ServiceNow Helper by Daniel Aagren Seehartrai Madsen

Created to help the ServiceNow community address critical security vulnerabilities quickly and safely.

Changelog

v1.0.0 (2025-10-10)

  • Initial release

Download Tool