Program: CWE-863
Project: CVE-2022-0406
Buggy source:
# Security Policy

## Reporting a Vulnerability

Please report security issues to ozzie.fernandez.isaacs@googlemail.com

## Supported Versions

To receive fixes for security vulnerabilities it is required to always upgrade to the latest version of Calibre-Web. See https://github.com/janeczku/calibre-web/releases/latest for the latest release.

## History

| Fixed in      | Description                                                                                                        |CVE number |
|---------------|--------------------------------------------------------------------------------------------------------------------|---------|
| 3rd July 2018 | Guest access acts as a backdoor                                                                                    ||
| V 0.6.7       | Hardcoded secret key for sessions                                                                                  |CVE-2020-12627 |
| V 0.6.13      | Calibre-Web Metadata cross site scripting                                                                          |CVE-2021-25964|
| V 0.6.13      | Name of Shelves are only visible to users who can access the corresponding shelf Thanks to @ibarrionuevo           ||
| V 0.6.13      | JavaScript could get executed in the description field. Thanks to @ranjit-git  and Hagai Wechsler (WhiteSource)    ||
| V 0.6.13      | JavaScript could get executed in a custom column of type "comment" field                                           ||
| V 0.6.13      | JavaScript could get executed after converting a book to another format with a title containing javascript code    ||
| V 0.6.13      | JavaScript could get executed after converting a book to another format with a username containing javascript code ||
| V 0.6.13      | JavaScript could get executed in the description series, categories or publishers title                            ||
| V 0.6.13      | JavaScript could get executed  in the shelf title                                                                  ||
| V 0.6.13      | Login with the old session cookie after logout. Thanks to @ibarrionuevo                                            ||
| V 0.6.14      | CSRF was possible. Thanks to @mik317 and Hagai Wechsler (WhiteSource)                                              |CVE-2021-25965|
| V 0.6.14      | Migrated some routes to POST-requests (CSRF protection). Thanks to @scara31                                        ||
| V 0.6.15      | Fix for "javascript:" script links in identifier. Thanks to @scara31                                               ||
| V 0.6.15      | Cross-Site Scripting vulnerability on uploaded cover file names. Thanks to @ibarrionuevo                           ||
| V 0.6.15      | Creating public shelfs is now denied if user is missing the edit public shelf right. Thanks to @ibarrionuevo       ||
| V 0.6.15      | Changed error message in case of trying to delete a shelf unauthorized. Thanks to @ibarrionuevo                    ||


## Staement regarding Log4j (CVE-2021-44228 and related)

Calibre-web is not affected by bugs related to Log4j. Calibre-Web is a python program, therefore not using Java, and not using the Java logging feature log4j. 


Fixed version (ground truth):
# Security Policy

## Reporting a Vulnerability

Please report security issues to ozzie.fernandez.isaacs@googlemail.com

## Supported Versions

To receive fixes for security vulnerabilities it is required to always upgrade to the latest version of Calibre-Web. See https://github.com/janeczku/calibre-web/releases/latest for the latest release.

## History

| Fixed in      | Description                                                                                                        |CVE number |
|---------------|--------------------------------------------------------------------------------------------------------------------|---------|
| 3rd July 2018 | Guest access acts as a backdoor                                                                                    ||
| V 0.6.7       | Hardcoded secret key for sessions                                                                                  |CVE-2020-12627 |
| V 0.6.13      | Calibre-Web Metadata cross site scripting                                                                          |CVE-2021-25964|
| V 0.6.13      | Name of Shelves are only visible to users who can access the corresponding shelf Thanks to @ibarrionuevo           ||
| V 0.6.13      | JavaScript could get executed in the description field. Thanks to @ranjit-git  and Hagai Wechsler (WhiteSource)    ||
| V 0.6.13      | JavaScript could get executed in a custom column of type "comment" field                                           ||
| V 0.6.13      | JavaScript could get executed after converting a book to another format with a title containing javascript code    ||
| V 0.6.13      | JavaScript could get executed after converting a book to another format with a username containing javascript code ||
| V 0.6.13      | JavaScript could get executed in the description series, categories or publishers title                            ||
| V 0.6.13      | JavaScript could get executed  in the shelf title                                                                  ||
| V 0.6.13      | Login with the old session cookie after logout. Thanks to @ibarrionuevo                                            ||
| V 0.6.14      | CSRF was possible. Thanks to @mik317 and Hagai Wechsler (WhiteSource)                                              |CVE-2021-25965|
| V 0.6.14      | Migrated some routes to POST-requests (CSRF protection). Thanks to @scara31                                        ||
| V 0.6.15      | Fix for "javascript:" script links in identifier. Thanks to @scara31                                               ||
| V 0.6.15      | Cross-Site Scripting vulnerability on uploaded cover file names. Thanks to @ibarrionuevo                           ||
| V 0.6.15      | Creating public shelfs is now denied if user is missing the edit public shelf right. Thanks to @ibarrionuevo       ||
| V 0.6.15      | Changed error message in case of trying to delete a shelf unauthorized. Thanks to @ibarrionuevo                    ||
| V 0.6.16      | JavaScript could get executed on authors page. Thanks to @alicaz                                                   ||
| V 0.6.16      | Localhost can no longer be used to upload covers. Thanks to @scara31                                               ||
| V 0.6.16      | Another case where public shelfs could be created without permission is prevented. Thanks to @ibarrionuevo         ||


## Staement regarding Log4j (CVE-2021-44228 and related)

Calibre-web is not affected by bugs related to Log4j. Calibre-Web is a python program, therefore not using Java, and not using the Java logging feature log4j.