Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 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
10 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

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. : Adds proper encoding

Outside <g:evaluate> Blocks

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!

    root@kitploit:~
    // 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

root@kitploit:~
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:

root@kitploit:~
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