• Advisory ID: DRUPAL-SA-CONTRIB-2012-102
  • Project: Ubercart AJAX Cart (third-party module)
  • Version: 6.x
  • Date: 2012-June-13
  • Security risk: Less critical
  • Exploitable from: Remote
  • Vulnerability: Information Disclosure


This module enables you to replace the default Ubercart shopping cart block with an AJAX-enabled one.

The module includes the user's current session ID in one of its JavaScript settings keys on every page load which could be intercepted if the user's connection is not over SSL.

This vulnerability is mitigated by the fact that an attacker must gain read access to the HTML output of a page with the uc_ajax_cart block enabled in order to potentially hijack the user's session. The issue is only known to affect sites that use some additional form of caching for authenticated users that shares Javascript settings values which is not a common case.

CVE: CVE-2012-2731

Versions affected

  • uc_ajax_cart 6.x-2.x versions prior to 6.x-2.1.

Drupal core is not affected. If you do not use the contributed Ubercart AJAX Cart module, there is nothing you need to do.


Install the latest version:

Also see the Ubercart AJAX Cart project page.

Reported by

Fixed by

Coordinated by

Contact and More Information

The Drupal security team can be reached at security at drupal.org or via the contact form at http://drupal.org/contact.

Learn more about the Drupal Security team and their policies, writing secure code for Drupal, and securing your site.