Cramer: 4 Shorted Stocks Emerging From the Doghouse

With the market rally pushing stocks ever higher, short sellers are being squeezed, even in names that many had left for dead. CNBC's Jim Cramer outlined why four underloved names are now dangerous for those betting on a drop.

Perhaps the poster child of beat-down stocks, Groupon has gone from "a darling to a dog to a dead dog. It's now back to being a dog," Cramer said Thursday on "Squawk on the Street."

However, the company's strategy is shifting to mobile and local, which now generate half of its business and is growing. Despite weakness overseas, the company's cash holdings are also attractive for investors, Cramer said.

(Read More: Analysts Raise Groupon Price Targets)

Green Mountain Coffee has also been on the radar of short sellers, but the stock was up sharply in early trading Thursday on the heels of an expanded deal with Starbucks and positive earnings guidance.

"All you needed to know is that sales increases were back and the numbers were spectacular," Cramer said. "This has become Starbucks' partner instead of Starbucks' enemy. There is a lot of opaque nature in the Starbucks deal, but it's good for both."

(Read More: Starbucks Extends Deal With Green Mountain Coffee)

Cramer sees this relationship remaining a partnership, rather than Starbucks' looking to acquire Green Mountain.

Another underloved name, Barnes & Noble, rose 23 percent in early trading on Thursday after a TechCrunch report that Microsoft is considering an offer to acquire all of Nook Media's digital assets.

"If it's true, then Barnes & Noble has pulled it off," Cramer said, but urged caution. "I don't know the terms, because it's too bountiful. There is a 36 percent short position in BKS, and you must cover if the deal is true. You just have to, there is no choice."

Electric car maker Tesla also rallied in early trading Thursday, after Consumer Reports awarded a near-perfect score to the flagship Model S sedan. The company also reported its first quarterly profit, beating production and delivery estimates, and issued positive guidance for 2013 sales.

(Read More: Consumer Reports gives near-perfect score to Tesla Model S)

"This was an amazing conference call," Cramer said, noting that the conference call revealed that 25 percent of those who test drive the Model S purchase one.

"It was the kind of call that makes you say, 'I'm short the stock, run me over with a Tesla, I cannot take the pain,'" he said. "Consumer Reports is going to take the 21,000 in sales that Tesla said they were going to do... They could double that."

(Related: The S&P's 10 Most Shorted Stocks)

"This conference call must be read. It is a textbook of what should go right at a company," he added.

— By CNBC's Paul Toscano. Follow him on Twitter and get the latest stories from "Squawk on the Street" @ToscanoPaul