EX-23.1 17 a2196647zex-23_1.htm EXHIBIT 23.1
QuickLinks -- Click here to rapidly navigate through this document


Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We hereby consent to the incorporation by reference in the Registration Statements on Form S-8 (Nos. 333-162764, 333-162763, 333-155352, 333-148455, 333-148454, 333-136937, 333-118065, 333-106388, 333-101908, 333-99739, 333-65385, 333-65383, 333-60168, 333-60152, 333-54140, 333-49522, 333-32178, 333-25707, 333-124210, 333-126225 and 333-132248) of Cubist Pharmaceuticals, Inc. of our report dated February 26, 2010, relating to the financial statements, financial statement schedule and the effectiveness of internal control over financial reporting, which appears in the Annual Report to Shareholders, which is incorporated in this Annual Report on Form 10-K.

/s/ PRICEWATERHOUSECOOPERS LLP

PricewaterhouseCoopers LLP
Boston, Massachusetts
February 26, 2010
   



QuickLinks