DEV Community

yutianle
yutianle

Posted on

ServiceNow template editing became a path to another user's session

ServiceNow template editing became a path to another user's session

ServiceNow has disclosed CVE-2026-125288, a code-injection issue in the ServiceNow AI Platform. The company says an authenticated user with template-editing privileges could execute code in the context of another user's session. ServiceNow deployed an update to hosted instances and provided the update to partners and self-hosted customers. It says it is not aware of malicious exploitation at publication.

The distinction between template editing and ordinary content editing is central. A template can be rendered in a different request, by a different account, with data and authorization context that the template author may not normally control. If the template language escapes into server-side code, the author's privilege is no longer the only privilege involved.

The affected privilege is broader than it appears

Template editors may be administrators, implementation partners, or delegated application owners. They may have access to change notification bodies, workspace text, workflow messages, or other render paths. ServiceNow evaluates the vulnerability as high, with CVSS 3.1 at 8.8 and CVSS 4.0 at 8.4. The difference between those scores does not change the engineering lesson: template authorship is a code-execution privilege.

An attack can cross a session boundary without stealing a password. The vulnerable renderer may run code while a higher-privileged user views a page or receives a message. That makes the relevant evidence include template changes, render events, session identity, and the application operations performed immediately afterward.

Verify the update path

Hosted customers should confirm with ServiceNow that their instance received the deployed update and that the change applies to all relevant scopes. Self-hosted and partner-managed deployments need a verified patch inventory that includes the AI Platform component, not only the core family version. Record the build identifier and the date the update was confirmed.

Do not assume that a plugin, custom scoped application, or cloned instance shares the same patch state as the primary instance. Review the data flow from template storage to rendering and any caches that could retain an old template after a patch. Clear caches through supported procedures and verify that the old render path is no longer active.

Audit template authority

List users and groups with template-editing rights. Identify templates that execute custom logic, call script includes, or render user-controlled data. Compare current templates with an approved baseline and open a review for unexplained changes. Restrict template editing to a small role with strong authentication and an approval process.

Review whether non-production administrators can publish templates into production through an integration, export, or deployment pipeline. A lower-privileged test account can become a useful foothold if its template is promoted without a security review. Apply the same change control to templates as to code because that is how the platform treats them.

Hunt for cross-session execution

Use service audit logs to find template changes followed by unusual actions in another user's session. Focus on failed authorization checks, unexpected record reads, session changes, and administrative queries. Compare the session owner, client address, user agent, and timing with the template author. A mismatch is not proof of exploitation, but it is a useful lead.

Review system logs for template rendering errors and code-injection indicators. Preserve enough context to reconstruct which template version was used. If the platform logs a template identifier rather than the content, capture the version from the deployment record before the next update overwrites it.

Respond without disrupting legitimate automation

If a template is untrusted, disable it through the approved configuration path rather than deleting it without evidence. Revoke sessions associated with suspicious actions after coordinating with the application owner. Rotate integration credentials that the affected session could read. Check downstream records and notifications for unauthorized changes because code execution in another context may have created or deleted objects.

After cleanup, test a benign template that uses allowed syntax. Confirm that the renderer rejects server-side execution and that the patch survives a restart. Require a second reviewer for high-impact templates and verify that the change review is recorded in the same system of record as other production changes.

References

Top comments (0)