---
title: swfobject – XSS Vulnerability On Versions Under 2.1, On swfobject.getQueryParamValue
description: "**Impact area** Security **Severity** High **Affected element** **ServiceNow** UI Script **Salesforce** Static Resource ## Rule number **SN-JSL-SWFOBJECT-LESSTHAN-V21 (**for ServiceNow) **SF-JSL-SWFOBJECT-LESSTHAN-V21 **(for Salesforce) ## Impact swfobject in versions before 2.1 is missing a filter on the getQueryParamValue which prevents XSS attacks. ##…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/swfobject-xss-vulnerability-on-versions-under-2-1-on-swfobject-getqueryparamvalue/"
updated: "2025-03-21"
category: Rules
---

# swfobject – XSS Vulnerability On Versions Under 2.1, On swfobject.getQueryParamValue

**Impact area**

Security

**Severity**

High

**Affected element**

**ServiceNow**

UI Script

**Salesforce**

Static Resource

## Rule number

**SN-JSL-SWFOBJECT-LESSTHAN-V21 (**for ServiceNow)

**SF-JSL-SWFOBJECT-LESSTHAN-V21 **(for Salesforce)

## Impact

swfobject in versions before 2.1 is missing a filter on the getQueryParamValue which prevents XSS attacks.

## Remediation

Update swfobject to the latest version.

### Time to fix

30 min

## References

This rule is linked to [Common Weakness Enumeration CWE-79 Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’)](https://cwe.mitre.org/data/definitions/79.html).
