No, there should not be a recourse through Stack Overflow, because "the violation took place outside of SO, so there is nothing for to sanction for Stack Exchange. You are the copyright holder, and defending your copyright is your responsibility. Taking moderation action like temporarily suspending a user for things happening outside of Stack Exchange would be a very slippery slope." <sub>([Mark Rotteveel](https://meta.stackoverflow.com/questions/418642/any-recourse-for-answers-put-in-commercial-publication-without-credit#comment914720_418642))</sub>

Indeed, if you want to do something about it personally, you can for example write to the publisher of that book and tell him that there has been used unauthorized material from you and that you are not agreeing to this. The answer will be telling. "They may well have incentives to compensate you." <sub>([tripleee](https://meta.stackoverflow.com/questions/418642/any-recourse-for-answers-put-in-commercial-publication-without-credit#comment914639_418642))</sub>

At the very least they may add the required attribution (in later/electronic versions) and be more careful. If you are not satisfied, you could even try "to engage the Electronic Frontier Foundation in this sort of issue .. they have in the past taken up pro bono cases where individual copyright holders with limited resources were up against corporations with more or less deep pockets." <sub>([tripleee](https://meta.stackoverflow.com/questions/418642/any-recourse-for-answers-put-in-commercial-publication-without-credit#comment914589_418642))</sub>

See also the "What actions can I take myself?" section of the [community wiki answer](https://meta.stackexchange.com/a/200178/260073) of [A site (or scraper) is copying content from Stack Exchange. What should I do?](https://meta.stackexchange.com/questions/200177/a-site-or-scraper-is-copying-content-from-stack-exchange-what-should-i-do).