CVE-2013-6459: Will paginate Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-8r6h-7x9g-xmw9
CWE-79
Published
Advisory Summary

CVE-2013-6459 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Will paginate libraries in the RubyGems ecosystem. The issue involves will_paginate cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 3.0.5.

CVE-2013-6459 at a Glance

CVE Identifier CVE-2013-6459
GHSA Identifier GHSA-8r6h-7x9g-xmw9
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Will paginate
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2013-6459

To remediate this vulnerability, upgrade all affected Will paginate dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

will_paginate fixed: 3.0.5
Upgrade will_paginate to 3.0.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for will_paginate

How to Check if You Are Affected

To determine whether your application is affected by CVE-2013-6459, inspect your project dependencies for Will paginate:

inspect dependencies for will_paginate

Analyze the terminal output to locate any version of Will paginate in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Will paginate, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Cross-site scripting (XSS) vulnerability in the will_paginate gem before 3.0.5 for Ruby allows remote attackers to inject arbitrary web script or HTML via vectors involving generated pagination links.

CVE-2013-6459 Affected Will paginate Versions

1 component(s)
Fixed Versions:
3.0.5
Product / Package Ecosystem Affected Versions Fixed Version
will_paginate
RubyGems
< 3.0.5
3.0.5

References

Frequently Asked Questions

What is CVE-2013-6459?
CVE-2013-6459 is a security vulnerability in Will paginate involving will_paginate Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Will paginate versions are affected?
Affected versions include releases prior to 3.0.5 across affected packages: will_paginate.
What version fixes CVE-2013-6459?
Upgrading to 3.0.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is will_paginate affected?
Yes, will_paginate is affected in releases prior to 3.0.5. Upgrade your dependency to 3.0.5 or later.
What CWE is associated with CVE-2013-6459?
CVE-2013-6459 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check RubyGems dependencies for CVE-2013-6459?
Run the dependency tree command: 'inspect dependencies for will_paginate'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8r6h-7x9g-xmw9",
  "modified" : "2023-01-23T20:49:57Z",
  "published" : "2017-10-24T18:33:36Z",
  "aliases" : [ "CVE-2013-6459" ],
  "summary" : "will_paginate Cross-site Scripting vulnerability",
  "details" : "Cross-site scripting (XSS) vulnerability in the will_paginate gem before 3.0.5 for Ruby allows remote attackers to inject arbitrary web script or HTML via vectors involving generated pagination links.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "will_paginate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-6459"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0336"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mislav/will_paginate"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mislav/will_paginate/releases/tag/v3.0.5"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20150709163604/http://www.securityfocus.com/bid/64509"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:26:31Z",
    "nvd_published_at" : "2013-12-31T16:04:23Z"
  }
}