schema string | policy_id string | source_cid string | field string | field_index int64 | raw_body_sha256 string | text large_string | normalized_text large_string | start_char int64 | end_char int64 | start_byte int64 | end_byte int64 | span_id string | span_text_sha256 string | kind string | status string | candidate_eligible bool | word_count int64 | char_count int64 | exceeds_candidate_limit bool | reasons list | requires_file_context bool | complete_compilation_unit bool | source_semantics_verified bool | truncated bool | source_field_id string | split string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | commit_message | 0 | 2c5569f31d2f5b7bec71dba5bb0d12e4b67ec379b96bded8f10548d2340e5b57 | nimble/host: Fix disconnect on host connection timeout
We don't need to have double loop and lock-unlock host lock when
issuing disconnect. | nimble/host: Fix disconnect on host connection timeout We don't need to have double loop and lock-unlock host lock when issuing disconnect. | 0 | 140 | 0 | 140 | sha256:587fa767df3524f78401fa783b1e44a0d70b127987585f90a48c94d973b8f812 | b9ea97036bb932d94fdb40b3a2af4ea14cb11d410b8abe48c4c2fc1262fea02e | prose_sentence | candidate | true | 21 | 140 | false | [] | false | false | false | false | sha256:fa82e7dc0173bb71b05e159f7fcd89b32f74e14c8719170bce46d61626106f97 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | commit_message | 0 | 2c5569f31d2f5b7bec71dba5bb0d12e4b67ec379b96bded8f10548d2340e5b57 | 140 | 141 | 140 | 141 | sha256:798f402f0e0c64c38a16c3cbee917a7f4a5bb78ef47ab274f1374900c4561c4a | 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:fa82e7dc0173bb71b05e159f7fcd89b32f74e14c8719170bce46d61626106f97 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | commit_message | 0 | 2c5569f31d2f5b7bec71dba5bb0d12e4b67ec379b96bded8f10548d2340e5b57 | ble_gap_terminate_with_conn() can be used
to disconnect and it can be called with already provided conn object
under host lock. | ble_gap_terminate_with_conn() can be used to disconnect and it can be called with already provided conn object under host lock. | 141 | 268 | 141 | 268 | sha256:edb3f3baaa890d523ff9d7458891bf60413623fadac1b094942991734b2a912f | 733253385f0b52b35b705bdf1b81f4d499ee926d0b2077b294d5ef2fc035da72 | prose_sentence | candidate | true | 19 | 127 | false | [] | false | false | false | false | sha256:fa82e7dc0173bb71b05e159f7fcd89b32f74e14c8719170bce46d61626106f97 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | commit_message | 0 | 2c5569f31d2f5b7bec71dba5bb0d12e4b67ec379b96bded8f10548d2340e5b57 | 268 | 269 | 268 | 269 | sha256:76bd112d547b5c3b0ce0100d83b1570b427527083488a20578d10ad58b72bcb2 | 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:fa82e7dc0173bb71b05e159f7fcd89b32f74e14c8719170bce46d61626106f97 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | cve_description | 0 | 7a94b5d7067d52f77369a482af21074ed21fbba3d165be547963ea37649d1ba7 | Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in Apache NimBLE. | Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in Apache NimBLE. | 0 | 86 | 0 | 86 | sha256:202f409c64536f03e096d134de96780d6c4d6052ee58e4464e4308c212b8fc1d | 25b25fadd8d8c0771ccc8252b54426382998282b6cd0199bcc75fd7eebb7b1c3 | prose_sentence | candidate | true | 11 | 86 | false | [] | false | false | false | false | sha256:869399e51b1ed65b3b96dd1cca24cc75ecf20695be95776f06dfb824dc41eaf1 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | cve_description | 0 | 7a94b5d7067d52f77369a482af21074ed21fbba3d165be547963ea37649d1ba7 | 86 | 89 | 86 | 90 | sha256:beda71fddd4bb1364074ac50b57e1821e665283e03a9f18412e83bac693c53c3 | 0eaf72f7dc8016cc4fff7b5055a8caf7c0a43d4a02365359137aba2956f64b75 | whitespace | excluded_whitespace | false | 0 | 3 | false | [
"whitespace_only"
] | false | false | false | false | sha256:869399e51b1ed65b3b96dd1cca24cc75ecf20695be95776f06dfb824dc41eaf1 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | cve_description | 0 | 7a94b5d7067d52f77369a482af21074ed21fbba3d165be547963ea37649d1ba7 | Specially crafted GATT operation can cause infinite loop in GATT server leading to denial of service in Bluetooth stack or device. | Specially crafted GATT operation can cause infinite loop in GATT server leading to denial of service in Bluetooth stack or device. | 89 | 219 | 90 | 220 | sha256:67c77940f578fa86de5ea9c3e2b5ee9f42bd072e33f681677e9f8a122145441a | 93d2de409606f1a20294a54348af0506c19ad67343c355638af206da97837157 | prose_sentence | candidate | true | 21 | 130 | false | [] | false | false | false | false | sha256:869399e51b1ed65b3b96dd1cca24cc75ecf20695be95776f06dfb824dc41eaf1 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | cve_description | 0 | 7a94b5d7067d52f77369a482af21074ed21fbba3d165be547963ea37649d1ba7 | 219 | 221 | 220 | 222 | sha256:44202e2bfff27e77eee01e7d12f3de950656fa66f7cebbbacd8ce7b2412eae21 | 75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070 | whitespace | excluded_whitespace | false | 0 | 2 | false | [
"whitespace_only"
] | false | false | false | false | sha256:869399e51b1ed65b3b96dd1cca24cc75ecf20695be95776f06dfb824dc41eaf1 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | cve_description | 0 | 7a94b5d7067d52f77369a482af21074ed21fbba3d165be547963ea37649d1ba7 | This issue affects Apache NimBLE: through 1.6.0. | This issue affects Apache NimBLE: through 1.6.0. | 221 | 269 | 222 | 270 | sha256:c40de7a933be8557ed788751880464046f6667007827f2fec72980b1e4feb6ee | 989755446b976468ce8f4ff23f1bb483c9e3f55eb9719f3e58294bc25d519db5 | prose_sentence | candidate | true | 7 | 48 | false | [] | false | false | false | false | sha256:869399e51b1ed65b3b96dd1cca24cc75ecf20695be95776f06dfb824dc41eaf1 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | cve_description | 0 | 7a94b5d7067d52f77369a482af21074ed21fbba3d165be547963ea37649d1ba7 | 269 | 270 | 270 | 271 | sha256:3a1d2145ffd907e198d11e7c7b1d8742e688b76bd9182f56ee6474e5d912fe12 | 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:869399e51b1ed65b3b96dd1cca24cc75ecf20695be95776f06dfb824dc41eaf1 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | cve_description | 0 | 7a94b5d7067d52f77369a482af21074ed21fbba3d165be547963ea37649d1ba7 | Users are recommended to upgrade to version 1.7.0, which fixes the issue. | Users are recommended to upgrade to version 1.7.0, which fixes the issue. | 270 | 343 | 271 | 344 | sha256:f5b58ce8c06ff27c64e61330a1dd0aace50de11f4145d96d64fbd78b626ca9ce | a9444939e1165c31efae6b9e02ad01a3deba18ff7b45bf4eb9d9731de29a5378 | prose_sentence | candidate | true | 12 | 73 | false | [] | false | false | false | false | sha256:869399e51b1ed65b3b96dd1cca24cc75ecf20695be95776f06dfb824dc41eaf1 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | cwe_description | 0 | 181229fb3ac324d8d66645638b0fc218101bc59505d5b048f3e6a2d6dc32ff0f | The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. | The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. | 0 | 112 | 0 | 112 | sha256:11a8ea8a80b74a511b6d86acfda5cc8794b99da7d8ec34648f3298fcdebbfb1f | 181229fb3ac324d8d66645638b0fc218101bc59505d5b048f3e6a2d6dc32ff0f | prose_sentence | excluded_cross_partition_duplicate | false | 19 | 112 | false | [
"cross_partition_duplicate"
] | false | false | false | false | sha256:ff086a4919be65c51769eaa415d5f0e241e9655e8a3746d15092017c251509dd | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | diff_with_context | 0 | e542ba1539e53d41e382b83c37e1316a53687e4f4e27ec3a84b747d261894f4c | diff --git a/nimble/host/src/ble_hs_conn.c b/nimble/host/src/ble_hs_conn.c
index 9b7bdbb3..57ba16af 100644
--- a/nimble/host/src/ble_hs_conn.c
+++ b/nimble/host/src/ble_hs_conn.c
| diff --git a/nimble/host/src/ble_hs_conn.c b/nimble/host/src/ble_hs_conn.c index 9b7bdbb3..57ba16af 100644 --- a/nimble/host/src/ble_hs_conn.c +++ b/nimble/host/src/ble_hs_conn.c | 0 | 179 | 0 | 179 | sha256:085bae649c7bf9350be6de5612d5346678611e3ff0358d5bc50711e93b03a046 | 469ce5e0512890a0a70120fd9acae89190efafca318c71d085ac3acb38548c47 | diff_context | context_required | false | 11 | 179 | false | [
"requires_file_context"
] | true | false | false | false | sha256:8ab5408de66c1c55e7b685215be4787ef45b2a6d4bade267db067d96cd0f238b | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | diff_with_context | 0 | e542ba1539e53d41e382b83c37e1316a53687e4f4e27ec3a84b747d261894f4c | @@ -475,90 +475,77 @@ ble_hs_conn_timer(void)
return BLE_HS_FOREVER;
#endif
struct ble_hs_conn *conn;
- ble_npl_time_t now;
- int32_t next_exp_in;
+ ble_npl_time_t now = ble_npl_time_get();
+ int32_t next_exp_in = BLE_HS_FOREVER;
+ int32_t next_exp_in_new;
+ bool next_exp_in_updated;
... | @@ -475,90 +475,77 @@ ble_hs_conn_timer(void) return BLE_HS_FOREVER; #endif struct ble_hs_conn *conn; - ble_npl_time_t now; - int32_t next_exp_in; + ble_npl_time_t now = ble_npl_time_get(); + int32_t next_exp_in = BLE_HS_FOREVER; + int32_t next_exp_in_new; + bool next_exp_in_updated; int32_t time_diff; - uint16_t conn_... | 179 | 5,429 | 179 | 5,429 | sha256:bc369d1301c01fd9303ed647ffb9b87aa5334cdc3fd7eb6db64c4f9476c5b3b4 | c913d1dcc399a3d90652ea50f31f03c16499f819c7638fb8341a0bb22dd5d20c | diff_hunk | context_required | false | 623 | 5,250 | true | [
"requires_file_context"
] | true | false | false | false | sha256:8ab5408de66c1c55e7b685215be4787ef45b2a6d4bade267db067d96cd0f238b | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | fixed_code | 0 | cd90b0a6953cc858b3d8d275bd87a9792e1aa0ae3aa66d8a1afe32b7e3d31a81 | ble_npl_time_t now = ble_npl_time_get();
int32_t next_exp_in = BLE_HS_FOREVER;
int32_t next_exp_in_new;
bool next_exp_in_updated;
ble_hs_lock();
/* This loop performs one of two tasks:
* 1. Determine if any connections need to be terminated due to timeout. If
* so connection is disc... | ble_npl_time_t now = ble_npl_time_get(); int32_t next_exp_in = BLE_HS_FOREVER; int32_t next_exp_in_new; bool next_exp_in_updated; ble_hs_lock(); /* This loop performs one of two tasks: * 1. Determine if any connections need to be terminated due to timeout. If * so connection is disconnected. * 2. Otherwise, determine w... | 0 | 1,996 | 0 | 1,996 | sha256:6688546f4192e80fb9056ea9d2fec58777e0e9932ef4e64611865fc3ae20d81c | cd90b0a6953cc858b3d8d275bd87a9792e1aa0ae3aa66d8a1afe32b7e3d31a81 | code_context | context_required | false | 195 | 1,996 | true | [
"requires_file_context"
] | true | false | false | false | sha256:200af5afacb29e60c81618ee4850aae42f377bc9e6f5f1533632c277de0537a5 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreigujtypdkagbqknzssg4bpee6uxgpjhn3436n4dh2j2srx6gqdxuy | vulnerable_code | 0 | 71e628fa5917b15ce8e12975b5327e482c40a6ab2b62d3ddb088cc625a80d59c | ble_npl_time_t now;
int32_t next_exp_in;
uint16_t conn_handle;
for (;;) {
conn_handle = BLE_HS_CONN_HANDLE_NONE;
next_exp_in = BLE_HS_FOREVER;
now = ble_npl_time_get();
ble_hs_lock();
/* This loop performs one of two tasks:
* 1. Determine if any connecti... | ble_npl_time_t now; int32_t next_exp_in; uint16_t conn_handle; for (;;) { conn_handle = BLE_HS_CONN_HANDLE_NONE; next_exp_in = BLE_HS_FOREVER; now = ble_npl_time_get(); ble_hs_lock(); /* This loop performs one of two tasks: * 1. Determine if any connections need to be terminated due to timeout. * If so, break out of th... | 0 | 2,655 | 0 | 2,655 | sha256:e238e5369193122de758ca33ebd006406211ad7454807768e4fc1903dcfa5d22 | 71e628fa5917b15ce8e12975b5327e482c40a6ab2b62d3ddb088cc625a80d59c | code_context | context_required | false | 272 | 2,655 | true | [
"requires_file_context"
] | true | false | false | false | sha256:41af495e8c17f9c549886f931dc0851246ae61a4a642d986b334c209d421469e | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreic5jpleldp3eqwdfwjuio5dzzymqwtiorhyfbl5s7tsub3d3vtvae | commit_message | 0 | d54151853bd87938266840387449e00b8ec029ef7994d55f1949b00af5a7aed9 | fix access to files without protocol | fix access to files without protocol | 0 | 36 | 0 | 36 | sha256:2870c3a308a422566a41118b4cc3454c08d05c666f54c6dfe91fe91bcd2f75f5 | 033a38a8c6b4eb4149920489f76151856ad1adc50c0c4344d4637c9a3e1a752d | prose_sentence | candidate | true | 6 | 36 | false | [] | false | false | false | false | sha256:80e31dfa0da70e943975f5b37e2efa9f0b9baa697c65efdd2e97e43602491524 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreic5jpleldp3eqwdfwjuio5dzzymqwtiorhyfbl5s7tsub3d3vtvae | commit_message | 0 | d54151853bd87938266840387449e00b8ec029ef7994d55f1949b00af5a7aed9 | 36 | 37 | 36 | 37 | sha256:382b95472238aafd28675db81d458ae6a6192b994871f4f409bd0b59ac601232 | 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:80e31dfa0da70e943975f5b37e2efa9f0b9baa697c65efdd2e97e43602491524 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreic5jpleldp3eqwdfwjuio5dzzymqwtiorhyfbl5s7tsub3d3vtvae | cve_description | 0 | 8a728b6a5c873c54fde32207609c472cda82edd009a7b50d13be4516271a48fd | This affects the package phantom-html-to-pdf before 0.6.1. | This affects the package phantom-html-to-pdf before 0.6.1. | 0 | 58 | 0 | 58 | sha256:6ceb32042754258c33c139b47d3bc4b086fb9e2b53dd86024bf1bc633e36f1eb | 8a728b6a5c873c54fde32207609c472cda82edd009a7b50d13be4516271a48fd | prose_sentence | candidate | true | 7 | 58 | false | [] | false | false | false | false | sha256:9e1a6e3f14406a3d54f5ccb7414cf1bc5a3cae3a788085660345d780d244c681 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreic5jpleldp3eqwdfwjuio5dzzymqwtiorhyfbl5s7tsub3d3vtvae | cwe_description | 0 | b521ac159a7ec83507243a34fe44808e4d5b9532faa5dacca45473b456057e1f | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the... | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the... | 0 | 342 | 0 | 342 | sha256:3f776f56ee65ca6d9968dcaa463ec0b6c2714049debc217971e46a0cdcfcb553 | b521ac159a7ec83507243a34fe44808e4d5b9532faa5dacca45473b456057e1f | prose_sentence | oversize | false | 55 | 342 | true | [
"prose_word_limit"
] | false | false | false | false | sha256:904f09a8a9629f930f95003a99e2eeaab9866045a75a486a5f38077edfb95db8 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreic5jpleldp3eqwdfwjuio5dzzymqwtiorhyfbl5s7tsub3d3vtvae | diff_with_context | 0 | f8584a3ff336de6e0def9dc376e928737f865c99614de8f7d28fb8d7eb2ba3d7 | diff --git a/lib/scripts/conversionScriptPart.js b/lib/scripts/conversionScriptPart.js
index 20c8f42..044ab07 100644
--- a/lib/scripts/conversionScriptPart.js
+++ b/lib/scripts/conversionScriptPart.js
| diff --git a/lib/scripts/conversionScriptPart.js b/lib/scripts/conversionScriptPart.js index 20c8f42..044ab07 100644 --- a/lib/scripts/conversionScriptPart.js +++ b/lib/scripts/conversionScriptPart.js | 0 | 201 | 0 | 201 | sha256:f08af388d2326273abf6287adc56e1fa3d5244b9ae80220eddab2bee18caf699 | ad5c8496f5c2db5af6855f1419d019f1b8058a2c0eb8efc5a77e570c000154a4 | diff_context | context_required | false | 11 | 201 | false | [
"requires_file_context"
] | true | false | false | false | sha256:010ce1fd65e11b41cb5b4b7f67f8182ae0ef804af7ebb075b8f0d29a46d12145 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreic5jpleldp3eqwdfwjuio5dzzymqwtiorhyfbl5s7tsub3d3vtvae | diff_with_context | 0 | f8584a3ff336de6e0def9dc376e928737f865c99614de8f7d28fb8d7eb2ba3d7 | @@ -17,23 +17,23 @@ if(body.cookies.length > 0) {
page.onResourceRequested = function (request, networkRequest) {
console.log('Request ' + request.url);
if (request.url.lastIndexOf(body.url, 0) === 0) {
return;
- }
-
- //potentially dangerous request
- if (request.url.lastIndexOf("file://... | @@ -17,23 +17,23 @@ if(body.cookies.length > 0) { page.onResourceRequested = function (request, networkRequest) { console.log('Request ' + request.url); if (request.url.lastIndexOf(body.url, 0) === 0) { return; - } - - //potentially dangerous request - if (request.url.lastIndexOf("file:///", 0) === 0 && !body.allowLoca... | 201 | 1,247 | 201 | 1,247 | sha256:869b2f6b187cded13dea7da4b75bae350b98f5b0e4bf619235b8047f5d9edbfa | 04803f832e98bb813d31b764f352e533d7c1ae19af17b806c6f77abc51438ab8 | diff_hunk | context_required | false | 105 | 1,046 | true | [
"requires_file_context"
] | true | false | false | false | sha256:010ce1fd65e11b41cb5b4b7f67f8182ae0ef804af7ebb075b8f0d29a46d12145 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreic5jpleldp3eqwdfwjuio5dzzymqwtiorhyfbl5s7tsub3d3vtvae | diff_with_context | 0 | f8584a3ff336de6e0def9dc376e928737f865c99614de8f7d28fb8d7eb2ba3d7 | diff --git a/test/test.js b/test/test.js
index 2d74f19..3bc6a0d 100644
--- a/test/test.js
+++ b/test/test.js
| diff --git a/test/test.js b/test/test.js index 2d74f19..3bc6a0d 100644 --- a/test/test.js +++ b/test/test.js | 1,247 | 1,356 | 1,247 | 1,356 | sha256:70700ebf41e612c2f78b90c08541bb6be8a7250c5d6a913c54d723552fc822b3 | 7b1e3b2a541e49ea7ef51dc2ec78792a00c5c51ca1db3d6f2500207ea54f855d | diff_context | context_required | false | 11 | 109 | false | [
"requires_file_context"
] | true | false | false | false | sha256:010ce1fd65e11b41cb5b4b7f67f8182ae0ef804af7ebb075b8f0d29a46d12145 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreic5jpleldp3eqwdfwjuio5dzzymqwtiorhyfbl5s7tsub3d3vtvae | diff_with_context | 0 | f8584a3ff336de6e0def9dc376e928737f865c99614de8f7d28fb8d7eb2ba3d7 | @@ -1,8 +1,8 @@
-var should = require("should"),
+var should = require("should"),
path = require("path"),
- fs = require("fs"),
+ fs = require("fs"),
phantomjs = require("phantomjs"),
phantomjs2 = require("phantomjs-prebuilt")
tmpDir = path.join(__dirname, "temp"),
conversion = req... | @@ -1,8 +1,8 @@ -var should = require("should"), +var should = require("should"), path = require("path"), - fs = require("fs"), + fs = require("fs"), phantomjs = require("phantomjs"), phantomjs2 = require("phantomjs-prebuilt") tmpDir = path.join(__dirname, "temp"), conversion = require("../lib/conversion.js")({ timeout... | 1,356 | 1,732 | 1,356 | 1,732 | sha256:138afb10f7f10e5089766f2bdb446e0f67dbd31b17b6375e3211eecb13f16a35 | 73be3abd59fa89adf55c41098d745ead92de35e5fa6060470a7a633dbc7f2206 | diff_hunk | context_required | false | 38 | 376 | false | [
"requires_file_context"
] | true | false | false | false | sha256:010ce1fd65e11b41cb5b4b7f67f8182ae0ef804af7ebb075b8f0d29a46d12145 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreic5jpleldp3eqwdfwjuio5dzzymqwtiorhyfbl5s7tsub3d3vtvae | diff_with_context | 0 | f8584a3ff336de6e0def9dc376e928737f865c99614de8f7d28fb8d7eb2ba3d7 | @@ -93,25 +93,11 @@ describe("phantom html to pdf", function () {
res.stream.should.have.property("readable");
done();
});
});
- });
-
- it('should create a pdf file ignoring ssl errors', function(done) {
- conversion({
-... | @@ -93,25 +93,11 @@ describe("phantom html to pdf", function () { res.stream.should.have.property("readable"); done(); }); }); - }); - - it('should create a pdf file ignoring ssl errors', function(done) { - conversion({ - url: 'https://sygris.com' - }, function(err, res) { - if (err) { - return done(err); - } - - res.n... | 1,732 | 2,631 | 1,732 | 2,631 | sha256:116887b2328080ff0e1c55215445fa41bb935ccc0010b377cf41718d99434d45 | d914d647167947673d1b05ef6b792fe34d64c3d9fdbcf307ef97efc504b3f820 | diff_hunk | context_required | false | 76 | 899 | true | [
"requires_file_context"
] | true | false | false | false | sha256:010ce1fd65e11b41cb5b4b7f67f8182ae0ef804af7ebb075b8f0d29a46d12145 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreic5jpleldp3eqwdfwjuio5dzzymqwtiorhyfbl5s7tsub3d3vtvae | diff_with_context | 0 | f8584a3ff336de6e0def9dc376e928737f865c99614de8f7d28fb8d7eb2ba3d7 | @@ -199,11 +185,11 @@ describe("phantom html to pdf", function () {
}, function(err, res) {
if (err) {
return done(err);
}
- JSON.stringify(res.logs).should.containEql('foo');
+ ;
done();
})... | @@ -199,11 +185,11 @@ describe("phantom html to pdf", function () { }, function(err, res) { if (err) { return done(err); } - JSON.stringify(res.logs).should.containEql('foo'); + ; done(); }); }); it('should trim logs for long base64 encoded images', function(done) { | 2,631 | 3,048 | 2,631 | 3,048 | sha256:6c86e599fed194432e402f343ebdbefa969b5ebae3b5014e493b54970eb06f98 | 18d8cb9108ee1c09060b4cb1c2d62483caecee9904f6c970b4cf1ddb15b4e261 | diff_hunk | context_required | false | 38 | 417 | false | [
"requires_file_context"
] | true | false | false | false | sha256:010ce1fd65e11b41cb5b4b7f67f8182ae0ef804af7ebb075b8f0d29a46d12145 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreic5jpleldp3eqwdfwjuio5dzzymqwtiorhyfbl5s7tsub3d3vtvae | diff_with_context | 0 | f8584a3ff336de6e0def9dc376e928737f865c99614de8f7d28fb8d7eb2ba3d7 | @@ -259,10 +245,39 @@ describe("phantom html to pdf", function () {
return done(err);
JSON.stringify(res.logs).should.containEql('test-cookie1=test-value1; test-cookie2=test-value2');
done();
})
});
+
+ it('should reject local files', f... | @@ -259,10 +245,39 @@ describe("phantom html to pdf", function () { return done(err); JSON.stringify(res.logs).should.containEql('test-cookie1=test-value1; test-cookie2=test-value2'); done(); }) }); + + it('should reject local files', function(done) { + conversion({ + html: `<script> + document.write(window.location='$... | 3,048 | 4,537 | 3,048 | 4,537 | sha256:241fa4f8ec28fd3e271cf461245ae9497c7cda00d9695c0a497e2dc73905a9df | 0088b32052339ce690233aa93521fcb4e288e62c5f595e151300b44a7e634edb | diff_hunk | context_required | false | 118 | 1,489 | true | [
"requires_file_context"
] | true | false | false | false | sha256:010ce1fd65e11b41cb5b4b7f67f8182ae0ef804af7ebb075b8f0d29a46d12145 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreic5jpleldp3eqwdfwjuio5dzzymqwtiorhyfbl5s7tsub3d3vtvae | fixed_code | 0 | 1525167dd7cec01ffd91d25a34b811d8ae4adcd3e45a5da8870656d4e1e1763d | }
//potentially dangerous request
if (request.url.lastIndexOf("http://", 0) !== 0 && request.url.lastIndexOf("https://", 0) && !body.allowLocalFilesAccess) {
networkRequest.abort();
return;
}
var should = require("should"),
fs = require("fs"),
});
... | } //potentially dangerous request if (request.url.lastIndexOf("http://", 0) !== 0 && request.url.lastIndexOf("https://", 0) && !body.allowLocalFilesAccess) { networkRequest.abort(); return; } var should = require("should"), fs = require("fs"), }); ; it('should reject local files', function(done) { conversion({ html: `<... | 0 | 1,396 | 0 | 1,396 | sha256:d29e67e8574513cc8bf669ab11189360065c7b6611cc317be50aaf743da18ede | 1525167dd7cec01ffd91d25a34b811d8ae4adcd3e45a5da8870656d4e1e1763d | code_context | context_required | false | 89 | 1,396 | true | [
"requires_file_context"
] | true | false | false | false | sha256:b2dc4cfdc3bca5d3cc3569375afb1d063626a954bc6529845665591bf742fadc | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreic5jpleldp3eqwdfwjuio5dzzymqwtiorhyfbl5s7tsub3d3vtvae | vulnerable_code | 0 | 07bdf99149444b4e46eb939220f96cbc6524624e9b0e1578f0a468532dad3555 | }
//potentially dangerous request
if (request.url.lastIndexOf("file:///", 0) === 0 && !body.allowLocalFilesAccess) {
networkRequest.abort();
return;
}
var should = require("should"),
fs = require("fs"),
});
it('should create a pdf file ignoring ssl errors', function... | } //potentially dangerous request if (request.url.lastIndexOf("file:///", 0) === 0 && !body.allowLocalFilesAccess) { networkRequest.abort(); return; } var should = require("should"), fs = require("fs"), }); it('should create a pdf file ignoring ssl errors', function(done) { conversion({ url: 'https://sygris.com' }, fun... | 0 | 747 | 0 | 747 | sha256:4783f4ad8f682332ba1942abd912fb648d6a843f94b30e5920173ca50ba489c3 | 07bdf99149444b4e46eb939220f96cbc6524624e9b0e1578f0a468532dad3555 | code_context | context_required | false | 52 | 747 | true | [
"requires_file_context"
] | true | false | false | false | sha256:1829a7c75eb0375016b71a6b7072cfb2af10d4b6e321e11d47f4c04bb8d54a47 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | commit_message | 0 | 6f7142d8932ccb5ffecfc10c28c78dda1ccfda19cf32715086e0a751582b9f0c | Update:/auth/openid/config API endpoint to require admin user and validate issuer URL | Update:/auth/openid/config API endpoint to require admin user and validate issuer URL | 0 | 85 | 0 | 85 | sha256:8238158b9875cad6d264c2b662e49ad596c14668c54145d0e2dea608d87fdcfe | dc843831fdadb06edcd775077516d4ef6bb10014c4844136696c5eee5fb9f623 | prose_sentence | candidate | true | 11 | 85 | false | [] | false | false | false | false | sha256:1d10106d7725bce1940e488be3fb78abd2489dd79fd5084386e7043dadcec96e | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | commit_message | 0 | 6f7142d8932ccb5ffecfc10c28c78dda1ccfda19cf32715086e0a751582b9f0c | 85 | 86 | 85 | 86 | sha256:18fc1bcfefd36c5b01a44ad7eece904fd9fcdbcdf281955b3c6314cc4ca31187 | 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:1d10106d7725bce1940e488be3fb78abd2489dd79fd5084386e7043dadcec96e | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | cve_description | 0 | 3f922f85b9da4a56c13497379419955d9006488511d62b6d015065c125b801df | Audiobookshelf is a self-hosted audiobook and podcast server. | Audiobookshelf is a self-hosted audiobook and podcast server. | 0 | 61 | 0 | 61 | sha256:5f980ba93ceaf4c4d036fedeca0a1f67c34f957730a6a2ed09ca023ced5e5073 | 1d8eda2440f7d303d85bcf74b565584313ee50698873ef542babd383d2d239a8 | prose_sentence | candidate | true | 8 | 61 | false | [] | false | false | false | false | sha256:f2be867a5e398a142bb090f4c10c28afd5994610c4748b626b4f9fcd58ae3032 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | cve_description | 0 | 3f922f85b9da4a56c13497379419955d9006488511d62b6d015065c125b801df | 61 | 62 | 61 | 62 | sha256:e20bd728c40fd011565be899979b04b006a91893d4fc8b819edd307dcad1f32c | 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:f2be867a5e398a142bb090f4c10c28afd5994610c4748b626b4f9fcd58ae3032 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | cve_description | 0 | 3f922f85b9da4a56c13497379419955d9006488511d62b6d015065c125b801df | Prior to 2.7.0, Audiobookshelf is vulnerable to unauthenticated blind server-side request (SSRF) vulnerability in Auth.js. | Prior to 2.7.0, Audiobookshelf is vulnerable to unauthenticated blind server-side request (SSRF) vulnerability in Auth.js. | 62 | 184 | 62 | 184 | sha256:bb6b014bb2f21b58da9cd21b1411d730cb805f86aead685304fa28f89ece57b7 | bf29e4c8c0fde8f0a2bc363ab3f427f7ffb3fe5162aaf788fd230c3929919442 | prose_sentence | candidate | true | 15 | 122 | false | [] | false | false | false | false | sha256:f2be867a5e398a142bb090f4c10c28afd5994610c4748b626b4f9fcd58ae3032 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | cve_description | 0 | 3f922f85b9da4a56c13497379419955d9006488511d62b6d015065c125b801df | 184 | 185 | 184 | 185 | sha256:4d634c8acbca99d6efaabc3b6e828ffeee93e9459174b81aabda45f528b25fbb | 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:f2be867a5e398a142bb090f4c10c28afd5994610c4748b626b4f9fcd58ae3032 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | cve_description | 0 | 3f922f85b9da4a56c13497379419955d9006488511d62b6d015065c125b801df | This vulnerability has been addressed in version 2.7.0. | This vulnerability has been addressed in version 2.7.0. | 185 | 240 | 185 | 240 | sha256:da5279e2d284bbf7aeebf11b957593b76ee10ba2126747b487504de381460f5c | c33ab332717c4650bebf5adb4ca5294d0f75265334d804cb2ecaabc7b4184740 | prose_sentence | candidate | true | 8 | 55 | false | [] | false | false | false | false | sha256:f2be867a5e398a142bb090f4c10c28afd5994610c4748b626b4f9fcd58ae3032 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | cve_description | 0 | 3f922f85b9da4a56c13497379419955d9006488511d62b6d015065c125b801df | 240 | 241 | 240 | 241 | sha256:acf48c56f1cfde88c7078c59ef93d5ad72813823c0ed9e9d536bbff3d7f6c8cd | 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:f2be867a5e398a142bb090f4c10c28afd5994610c4748b626b4f9fcd58ae3032 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | cve_description | 0 | 3f922f85b9da4a56c13497379419955d9006488511d62b6d015065c125b801df | There are no known workarounds for this vulnerability. | There are no known workarounds for this vulnerability. | 241 | 295 | 241 | 295 | sha256:aa3c2e51ddd4bec9b0ec77eb2bdf3d05ffcbf612ae7fce2fa0aa339795cbfadd | d320ea595efdf363d0ffc41905fd8e5246c50027c575f65133acd5fcc9d41471 | prose_sentence | excluded_cross_partition_duplicate | false | 8 | 54 | false | [
"cross_partition_duplicate"
] | false | false | false | false | sha256:f2be867a5e398a142bb090f4c10c28afd5994610c4748b626b4f9fcd58ae3032 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | cve_description | 0 | 3f922f85b9da4a56c13497379419955d9006488511d62b6d015065c125b801df | 295 | 297 | 295 | 297 | sha256:66ca2bb28a66e1753c9aafeba483bfc8ce7b7069e2eb8240342d5c8a980277a5 | 75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070 | whitespace | excluded_whitespace | false | 0 | 2 | false | [
"whitespace_only"
] | false | false | false | false | sha256:f2be867a5e398a142bb090f4c10c28afd5994610c4748b626b4f9fcd58ae3032 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | cwe_description | 0 | e8b3bb52734618a6557fb16c4e9b9258b09cf350119ffe01999681c5d199fa86 | The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination. | The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination. | 0 | 211 | 0 | 211 | sha256:1ef105afbb1fb2faa2a2fe81d3c96fba5fa9960533f5ad0ba39de917746f6f41 | e8b3bb52734618a6557fb16c4e9b9258b09cf350119ffe01999681c5d199fa86 | prose_sentence | excluded_cross_partition_duplicate | false | 36 | 211 | false | [
"cross_partition_duplicate"
] | false | false | false | false | sha256:a5ebf1b05f0754ef653e2bf2524d060b629f8a71a87172e9930a763248d5fc1d | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | diff_with_context | 0 | 5859f5d92c3a59a10a98ca504e161cc2bed3bff2cd7859761dc7bff5d9cbf769 | diff --git a/server/Auth.js b/server/Auth.js
index 0a282c9c..d2334de2 100644
--- a/server/Auth.js
+++ b/server/Auth.js
| diff --git a/server/Auth.js b/server/Auth.js index 0a282c9c..d2334de2 100644 --- a/server/Auth.js +++ b/server/Auth.js | 0 | 119 | 0 | 119 | sha256:a1cfceef9926461972184f12f88fef2e73281d2a5f60d65685674d6ebeaf576b | 3766572607fef4fdef0af47e9db02e2a359e3cf6c61828961b2e80b4783a6284 | diff_context | context_required | false | 11 | 119 | false | [
"requires_file_context"
] | true | false | false | false | sha256:409a164ec417a31ce0a9572b4e4d46ffc5e8561e797b982dd9f75a6819a5d9d1 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | diff_with_context | 0 | 5859f5d92c3a59a10a98ca504e161cc2bed3bff2cd7859761dc7bff5d9cbf769 | @@ -294,11 +294,11 @@ class Auth {
// We will allow if it is in the whitelist, by saving it into this.openIdAuthSession and setting the redirect uri to /auth/openid/mobile-redirect
// where we will handle the redirect to it
if (req.query.redirect_uri) {
// Check if the redirect_... | @@ -294,11 +294,11 @@ class Auth { // We will allow if it is in the whitelist, by saving it into this.openIdAuthSession and setting the redirect uri to /auth/openid/mobile-redirect // where we will handle the redirect to it if (req.query.redirect_uri) { // Check if the redirect_uri is in the whitelist if (Database.serv... | 119 | 1,245 | 119 | 1,245 | sha256:dedc9d8a1a07851500b66dbd04b2f83d8596598b7d7e42b6fa632a31ba6035b3 | 6c521c51ac6445c0570161a71e0103b290b68b0af2ae92233b960a5dce968287 | diff_hunk | context_required | false | 91 | 1,126 | true | [
"requires_file_context"
] | true | false | false | false | sha256:409a164ec417a31ce0a9572b4e4d46ffc5e8561e797b982dd9f75a6819a5d9d1 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | diff_with_context | 0 | 5859f5d92c3a59a10a98ca504e161cc2bed3bff2cd7859761dc7bff5d9cbf769 | @@ -379,11 +379,11 @@ class Auth {
// It will redirect to an app-link like audiobookshelf://oauth
router.get('/auth/openid/mobile-redirect', (req, res) => {
try {
// Extract the state parameter from the request
const { state, code } = req.query
-
+
// Check if the state p... | @@ -379,11 +379,11 @@ class Auth { // It will redirect to an app-link like audiobookshelf://oauth router.get('/auth/openid/mobile-redirect', (req, res) => { try { // Extract the state parameter from the request const { state, code } = req.query - + // Check if the state provided is in our list if (!state || !this.openI... | 1,245 | 1,822 | 1,245 | 1,822 | sha256:176cd90b821421b209fd5bd76dd61e588fccbbee72fc04bd3909020e820018c4 | 518c632528eef02cf3af6706712b49c3dd3b5f6dae1d45fc1053190c6fc82be4 | diff_hunk | context_required | false | 66 | 577 | true | [
"requires_file_context"
] | true | false | false | false | sha256:409a164ec417a31ce0a9572b4e4d46ffc5e8561e797b982dd9f75a6819a5d9d1 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | diff_with_context | 0 | 5859f5d92c3a59a10a98ca504e161cc2bed3bff2cd7859761dc7bff5d9cbf769 | @@ -467,21 +467,42 @@ class Auth {
},
// on a successfull login: read the cookies and react like the client requested (callback or json)
this.handleLoginSuccessBasedOnCookie.bind(this))
/**
- * Used to auto-populate the openid URLs in config/authentication
+ * Helper route used to auto... | @@ -467,21 +467,42 @@ class Auth { }, // on a successfull login: read the cookies and react like the client requested (callback or json) this.handleLoginSuccessBasedOnCookie.bind(this)) /** - * Used to auto-populate the openid URLs in config/authentication + * Helper route used to auto-populate the openid URLs in confi... | 1,822 | 3,968 | 1,822 | 3,968 | sha256:bba22e9fb929dc6c634d8db9b0237abcc25141146e5059f28eb72e5b65c42f1e | 972cad4ff1d841cb102c8eed8853c10fe559ca4fec318b247aba88fafdcc104e | diff_hunk | context_required | false | 222 | 2,146 | true | [
"requires_file_context"
] | true | false | false | false | sha256:409a164ec417a31ce0a9572b4e4d46ffc5e8561e797b982dd9f75a6819a5d9d1 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | fixed_code | 0 | e952898932f99519ed24ff1d4af88d6f6de320ea028d5715675b3ae0fa5eba6a | (Database.serverSettings.authOpenIDMobileRedirectURIs.length === 1 && Database.serverSettings.authOpenIDMobileRedirectURIs[0] === '*')) {
* Helper route used to auto-populate the openid URLs in config/authentication
* Takes an issuer URL as a query param and requests the config data at "/.well-kn... | (Database.serverSettings.authOpenIDMobileRedirectURIs.length === 1 && Database.serverSettings.authOpenIDMobileRedirectURIs[0] === '*')) { * Helper route used to auto-populate the openid URLs in config/authentication * Takes an issuer URL as a query param and requests the config data at "/.well-known/openid-configuratio... | 0 | 1,328 | 0 | 1,328 | sha256:fdc75cc99350d8ffc06b398d4f6b38c147f6e08c0d2e6038f35542a7dfe264d1 | e952898932f99519ed24ff1d4af88d6f6de320ea028d5715675b3ae0fa5eba6a | code_context | context_required | false | 118 | 1,328 | true | [
"requires_file_context"
] | true | false | false | false | sha256:45d237b96ff2c7c93d7da994d18a3031b4aaf12a644088cc2d6492f319ddcb6e | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreihtpiobv735ylj3wddp4525imphr2foavtgknawsr4a2xyowzfsqq | vulnerable_code | 0 | b14135afb82175485f7fa615c57794652b7285dd3389f90c0b607148f83cd963 | (Database.serverSettings.authOpenIDMobileRedirectURIs.length === 1 && Database.serverSettings.authOpenIDMobileRedirectURIs[0] === '*')) {
* Used to auto-populate the openid URLs in config/authentication
router.get('/auth/openid/config', async (req, res) => {
const configUrl = `${issuerUrl... | (Database.serverSettings.authOpenIDMobileRedirectURIs.length === 1 && Database.serverSettings.authOpenIDMobileRedirectURIs[0] === '*')) { * Used to auto-populate the openid URLs in config/authentication router.get('/auth/openid/config', async (req, res) => { const configUrl = `${issuerUrl}/.well-known/openid-configurat... | 0 | 403 | 0 | 403 | sha256:7cc304290c017672d4297365d787613b8ff926472e62128e417ee8c37fe92909 | b14135afb82175485f7fa615c57794652b7285dd3389f90c0b607148f83cd963 | code_context | context_required | false | 32 | 403 | false | [
"requires_file_context"
] | true | false | false | false | sha256:58a5996cd711566ea83c4fb93aae5d74de725e85865012f38d63b83940154c34 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | commit_message | 0 | 0d5a7addaa2ffad6164cadb27337b8ac1b351e644a3104e484d69c1e90718179 | Update:API endpoint /podcasts/feed validates rssFeed URL and uses SSRF req filter | Update:API endpoint /podcasts/feed validates rssFeed URL and uses SSRF req filter | 0 | 81 | 0 | 81 | sha256:c2f7be58786f198a7785bfd1e048331071a9f539a28c618f8fa96319ca0a6020 | 67f86ede3cfb80bdea2c0da7cf1afbc22f678430cbf2ee44252c731a8f636d29 | prose_sentence | candidate | true | 11 | 81 | false | [] | false | false | false | false | sha256:57ed65ee88fe6488736a70dcccd023bd078e94d0caeef8e31dcc78a1773f2841 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | commit_message | 0 | 0d5a7addaa2ffad6164cadb27337b8ac1b351e644a3104e484d69c1e90718179 | 81 | 82 | 81 | 82 | sha256:0c91ecb0cec7cbc050674a281e4bd18f58c6defef6cdd8303bb26890ccd894a7 | 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:57ed65ee88fe6488736a70dcccd023bd078e94d0caeef8e31dcc78a1773f2841 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | cve_description | 0 | b3484ac90e81ceec9aed03de016442bab7d6f78f84ca228f1798f5f478bf66a5 | Audiobookshelf is a self-hosted audiobook and podcast server. | Audiobookshelf is a self-hosted audiobook and podcast server. | 0 | 61 | 0 | 61 | sha256:557a280188a074f7e1eb6edc0f12357e8d9520ee367a65304dcb60e9aa63d646 | 1d8eda2440f7d303d85bcf74b565584313ee50698873ef542babd383d2d239a8 | prose_sentence | candidate | true | 8 | 61 | false | [] | false | false | false | false | sha256:c9bb5c1acb367b368ed81a9f62796262bb101fda87cd922a1a6d8da4c1dcd459 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | cve_description | 0 | b3484ac90e81ceec9aed03de016442bab7d6f78f84ca228f1798f5f478bf66a5 | 61 | 62 | 61 | 62 | sha256:eda9303773db155384c271331f50cd5cf48b0ac680d222b651d47118f4e256a1 | 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:c9bb5c1acb367b368ed81a9f62796262bb101fda87cd922a1a6d8da4c1dcd459 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | cve_description | 0 | b3484ac90e81ceec9aed03de016442bab7d6f78f84ca228f1798f5f478bf66a5 | Prior to 2.7.0, Audiobookshelf is vulnerable to unauthenticated blind server-side request (SSRF) vulnerability in `podcastUtils.js`. | Prior to 2.7.0, Audiobookshelf is vulnerable to unauthenticated blind server-side request (SSRF) vulnerability in `podcastUtils.js`. | 62 | 194 | 62 | 194 | sha256:5c8fd03ea34c00b1d47ba20ad25e9b3e6e90da98ce4e454bb7a9dbc2b60066ce | 020d5287b7428995b087a754d709974a9aaa2ceda0b6c05d62226ac7eb782a14 | prose_sentence | candidate | true | 15 | 132 | false | [] | false | false | false | false | sha256:c9bb5c1acb367b368ed81a9f62796262bb101fda87cd922a1a6d8da4c1dcd459 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | cve_description | 0 | b3484ac90e81ceec9aed03de016442bab7d6f78f84ca228f1798f5f478bf66a5 | 194 | 195 | 194 | 195 | sha256:333ac48bd1807bde11dbd80591fba1c68350ddba0d804ffe5718cf38e510b451 | 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:c9bb5c1acb367b368ed81a9f62796262bb101fda87cd922a1a6d8da4c1dcd459 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | cve_description | 0 | b3484ac90e81ceec9aed03de016442bab7d6f78f84ca228f1798f5f478bf66a5 | This vulnerability has been addressed in version 2.7.0. | This vulnerability has been addressed in version 2.7.0. | 195 | 250 | 195 | 250 | sha256:950d16e7cd3ff6c2bc18744819b20bfda509e9f680b68218255de3ed65ea29a8 | c33ab332717c4650bebf5adb4ca5294d0f75265334d804cb2ecaabc7b4184740 | prose_sentence | candidate | true | 8 | 55 | false | [] | false | false | false | false | sha256:c9bb5c1acb367b368ed81a9f62796262bb101fda87cd922a1a6d8da4c1dcd459 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | cve_description | 0 | b3484ac90e81ceec9aed03de016442bab7d6f78f84ca228f1798f5f478bf66a5 | 250 | 251 | 250 | 251 | sha256:d82664aa4295b848f5d67aa174e15d74f2cbc88a03016d777faaf9e65ad6c521 | 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:c9bb5c1acb367b368ed81a9f62796262bb101fda87cd922a1a6d8da4c1dcd459 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | cve_description | 0 | b3484ac90e81ceec9aed03de016442bab7d6f78f84ca228f1798f5f478bf66a5 | There are no known workarounds for this vulnerability. | There are no known workarounds for this vulnerability. | 251 | 305 | 251 | 305 | sha256:5b31ceb141fbcbccba558051bf34466f2197e10ddbaa0f3ce3cfe0db8f8ed6a0 | d320ea595efdf363d0ffc41905fd8e5246c50027c575f65133acd5fcc9d41471 | prose_sentence | excluded_cross_partition_duplicate | false | 8 | 54 | false | [
"cross_partition_duplicate"
] | false | false | false | false | sha256:c9bb5c1acb367b368ed81a9f62796262bb101fda87cd922a1a6d8da4c1dcd459 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | cve_description | 0 | b3484ac90e81ceec9aed03de016442bab7d6f78f84ca228f1798f5f478bf66a5 | 305 | 307 | 305 | 307 | sha256:3edfa96916a17b034b94d2299b52084e16b403b64fb362ec4e9cc0793263a922 | 75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070 | whitespace | excluded_whitespace | false | 0 | 2 | false | [
"whitespace_only"
] | false | false | false | false | sha256:c9bb5c1acb367b368ed81a9f62796262bb101fda87cd922a1a6d8da4c1dcd459 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | cwe_description | 0 | e8b3bb52734618a6557fb16c4e9b9258b09cf350119ffe01999681c5d199fa86 | The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination. | The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination. | 0 | 211 | 0 | 211 | sha256:583052d31c80e445496721146f6e868796d99c5ff81eeadddd08b6542e1915c9 | e8b3bb52734618a6557fb16c4e9b9258b09cf350119ffe01999681c5d199fa86 | prose_sentence | excluded_cross_partition_duplicate | false | 36 | 211 | false | [
"cross_partition_duplicate"
] | false | false | false | false | sha256:9d85373ab63ee7eaac8102c829d4235bc4db0322eee3848ca8f1274d8345cb94 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | diff_with_context | 0 | f25c00eee3298ee5acc97cccf9389c60eae51691442e3e0abc34841fd61670d0 | diff --git a/server/controllers/PodcastController.js b/server/controllers/PodcastController.js
index 035f9152..e476efd5 100644
--- a/server/controllers/PodcastController.js
+++ b/server/controllers/PodcastController.js
| diff --git a/server/controllers/PodcastController.js b/server/controllers/PodcastController.js index 035f9152..e476efd5 100644 --- a/server/controllers/PodcastController.js +++ b/server/controllers/PodcastController.js | 0 | 219 | 0 | 219 | sha256:ad192fa723048be1c2b57f44beb44c84070354ceb3b204ada6d7b46b3a4dd02d | 6c0dff0a7af0813b744a55bae0d2bd5cb9f7c65a295a582a9e6e7fb254842aa9 | diff_context | context_required | false | 11 | 219 | false | [
"requires_file_context"
] | true | false | false | false | sha256:1fac7b0d45d071e444238ea9eb3e47df0c167364e13f77cfc1bf7729bcf6108a | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | diff_with_context | 0 | f25c00eee3298ee5acc97cccf9389c60eae51691442e3e0abc34841fd61670d0 | @@ -4,10 +4,11 @@ const Database = require('../Database')
const fs = require('../libs/fsExtra')
const { getPodcastFeed, findMatchingEpisodes } = require('../utils/podcastUtils')
const { getFileTimestampsWithIno, filePathToPOSIX } = require('../utils/fileUtils')
+const { validateUrl } = require('../utils/index')
... | @@ -4,10 +4,11 @@ const Database = require('../Database') const fs = require('../libs/fsExtra') const { getPodcastFeed, findMatchingEpisodes } = require('../utils/podcastUtils') const { getFileTimestampsWithIno, filePathToPOSIX } = require('../utils/fileUtils') +const { validateUrl } = require('../utils/index') const S... | 219 | 703 | 219 | 703 | sha256:fdd4f777b19128f1867d81dfcfdbba7468cc759846af176d5a0d417ea39a88cd | eeb9be7af38c68f46d8ed836c54f713d098a8a71b414117da57ed34eee109e2c | diff_hunk | context_required | false | 44 | 484 | false | [
"requires_file_context"
] | true | false | false | false | sha256:1fac7b0d45d071e444238ea9eb3e47df0c167364e13f77cfc1bf7729bcf6108a | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | diff_with_context | 0 | f25c00eee3298ee5acc97cccf9389c60eae51691442e3e0abc34841fd61670d0 | @@ -100,19 +101,28 @@ class PodcastController {
if (libraryItem.media.autoDownloadEpisodes) {
this.cronManager.checkUpdatePodcastCron(libraryItem)
}
}
+ /**
+ * POST: /api/podcasts/feed
+ *
+ * @typedef getPodcastFeedReqBody
+ * @property {string} rssFeed
+ *
+ * @param {import('exp... | @@ -100,19 +101,28 @@ class PodcastController { if (libraryItem.media.autoDownloadEpisodes) { this.cronManager.checkUpdatePodcastCron(libraryItem) } } + /** + * POST: /api/podcasts/feed + * + * @typedef getPodcastFeedReqBody + * @property {string} rssFeed + * + * @param {import('express').Request<{}, {}, getPodcastFeed... | 703 | 1,764 | 703 | 1,764 | sha256:6f1d5972ba85830a2e7520df55aee16a9ccc3b3fa5d2d6657be54a7c02b188ec | b5e93fa4a62ecb6d8abf4da2f8947cd4113b7dcbf05ef9a74dfc3727ed2a2bc4 | diff_hunk | context_required | false | 113 | 1,061 | true | [
"requires_file_context"
] | true | false | false | false | sha256:1fac7b0d45d071e444238ea9eb3e47df0c167364e13f77cfc1bf7729bcf6108a | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | diff_with_context | 0 | f25c00eee3298ee5acc97cccf9389c60eae51691442e3e0abc34841fd61670d0 | diff --git a/server/utils/index.js b/server/utils/index.js
index 0377b173..29a65885 100644
--- a/server/utils/index.js
+++ b/server/utils/index.js
| diff --git a/server/utils/index.js b/server/utils/index.js index 0377b173..29a65885 100644 --- a/server/utils/index.js +++ b/server/utils/index.js | 1,764 | 1,911 | 1,764 | 1,911 | sha256:4c4de2e532b28f777b816ad6b8b97c2fed097687102d27306f9ec417eae07ef0 | 137d07f4c9be1d66d06e772a5cc1596eb149e49565dd50768ab4d6dc8f01cb8e | diff_context | context_required | false | 11 | 147 | false | [
"requires_file_context"
] | true | false | false | false | sha256:1fac7b0d45d071e444238ea9eb3e47df0c167364e13f77cfc1bf7729bcf6108a | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | diff_with_context | 0 | f25c00eee3298ee5acc97cccf9389c60eae51691442e3e0abc34841fd61670d0 | @@ -9,28 +9,28 @@ const levenshteinDistance = (str1, str2, caseSensitive = false) => {
if (!caseSensitive) {
str1 = str1.toLowerCase()
str2 = str2.toLowerCase()
}
const track = Array(str2.length + 1).fill(null).map(() =>
- Array(str1.length + 1).fill(null));
+ Array(str1.length + 1).fill(null))... | @@ -9,28 +9,28 @@ const levenshteinDistance = (str1, str2, caseSensitive = false) => { if (!caseSensitive) { str1 = str1.toLowerCase() str2 = str2.toLowerCase() } const track = Array(str2.length + 1).fill(null).map(() => - Array(str1.length + 1).fill(null)); + Array(str1.length + 1).fill(null)) for (let i = 0; i <= str... | 1,911 | 3,082 | 1,911 | 3,082 | sha256:0d2c48b284f7688db006e78054079c99f3f9fddfc2e2e183efe8c2c16fb94dc7 | 88c1edaf0d86469e633bd938c5ba5037a60b62e7b652589f72d8002551439ee9 | diff_hunk | context_required | false | 191 | 1,171 | true | [
"requires_file_context"
] | true | false | false | false | sha256:1fac7b0d45d071e444238ea9eb3e47df0c167364e13f77cfc1bf7729bcf6108a | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | diff_with_context | 0 | f25c00eee3298ee5acc97cccf9389c60eae51691442e3e0abc34841fd61670d0 | @@ -202,6 +202,22 @@ module.exports.asciiOnlyToLowerCase = (str) => {
* @returns {string}
*/
module.exports.escapeRegExp = (str) => {
if (typeof str !== 'string') return ''
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
+}
+
+/**
+ * Validate url string with URL class
+ *
+ * @param {string} rawUrl
+ * ... | @@ -202,6 +202,22 @@ module.exports.asciiOnlyToLowerCase = (str) => { * @returns {string} */ module.exports.escapeRegExp = (str) => { if (typeof str !== 'string') return '' return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') +} + +/** + * Validate url string with URL class + * + * @param {string} rawUrl + * @returns {str... | 3,082 | 3,717 | 3,082 | 3,717 | sha256:6b07d0a72449ba766772ce80edf5c0fc83d8c158ab5d089f59f538d73d27f9b5 | 5ac94142ecbec303e12d026ea366dc03f154d2abef9dedcf265ae56c1d320fc5 | diff_hunk | context_required | false | 100 | 635 | true | [
"requires_file_context"
] | true | false | false | false | sha256:1fac7b0d45d071e444238ea9eb3e47df0c167364e13f77cfc1bf7729bcf6108a | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | diff_with_context | 0 | f25c00eee3298ee5acc97cccf9389c60eae51691442e3e0abc34841fd61670d0 | diff --git a/server/utils/podcastUtils.js b/server/utils/podcastUtils.js
index 87b080d7..819ec914 100644
--- a/server/utils/podcastUtils.js
+++ b/server/utils/podcastUtils.js
| diff --git a/server/utils/podcastUtils.js b/server/utils/podcastUtils.js index 87b080d7..819ec914 100644 --- a/server/utils/podcastUtils.js +++ b/server/utils/podcastUtils.js | 3,717 | 3,892 | 3,717 | 3,892 | sha256:35b3338c963a6b43f5405d8a73aca40124ce3b2ce2e6371beed8f341a1fa449a | d0725ca4563f85b58bbf90c2035db6918804ff59338911d5d7000c49943ba535 | diff_context | context_required | false | 11 | 175 | false | [
"requires_file_context"
] | true | false | false | false | sha256:1fac7b0d45d071e444238ea9eb3e47df0c167364e13f77cfc1bf7729bcf6108a | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | diff_with_context | 0 | f25c00eee3298ee5acc97cccf9389c60eae51691442e3e0abc34841fd61670d0 | @@ -1,7 +1,8 @@
-const Logger = require('../Logger')
const axios = require('axios')
+const ssrfFilter = require('ssrf-req-filter')
+const Logger = require('../Logger')
const { xmlToJSON, levenshteinDistance } = require('./index')
const htmlSanitizer = require('../utils/htmlSanitizer')
function extractFirstArrayIt... | @@ -1,7 +1,8 @@ -const Logger = require('../Logger') const axios = require('axios') +const ssrfFilter = require('ssrf-req-filter') +const Logger = require('../Logger') const { xmlToJSON, levenshteinDistance } = require('./index') const htmlSanitizer = require('../utils/htmlSanitizer') function extractFirstArrayItem(jso... | 3,892 | 4,267 | 3,892 | 4,267 | sha256:943613e00a28a3397011e70115979cec52a38f5a534c5d4d2a98798cd98fb671 | f68a951ddd7b6cd5b29dae7339ce155ff1a1106ac0eff08d4b577885cda161d5 | diff_hunk | context_required | false | 39 | 375 | false | [
"requires_file_context"
] | true | false | false | false | sha256:1fac7b0d45d071e444238ea9eb3e47df0c167364e13f77cfc1bf7729bcf6108a | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | diff_with_context | 0 | f25c00eee3298ee5acc97cccf9389c60eae51691442e3e0abc34841fd61670d0 | @@ -214,13 +215,30 @@ module.exports.parsePodcastRssFeedXml = async (xml, excludeEpisodeMetadata = fal
podcast
}
}
}
+/**
+ * Get podcast RSS feed as JSON
+ * Uses SSRF filter to prevent internal URLs
+ *
+ * @param {string} feedUrl
+ * @param {boolean} [excludeEpisodeMetadata=false]
+ * @returns {P... | @@ -214,13 +215,30 @@ module.exports.parsePodcastRssFeedXml = async (xml, excludeEpisodeMetadata = fal podcast } } } +/** + * Get podcast RSS feed as JSON + * Uses SSRF filter to prevent internal URLs + * + * @param {string} feedUrl + * @param {boolean} [excludeEpisodeMetadata=false] + * @returns {Promise} + */ module.... | 4,267 | 5,444 | 4,267 | 5,444 | sha256:a71d29674cc1f8547f3248e40ec4932ede36cb65863111d6f425892d429e8528 | e50fb2fe2426ce02c520d0b61f1c13d3a5a4d6c432abce7dc4e2114f4e23144f | diff_hunk | context_required | false | 137 | 1,177 | true | [
"requires_file_context"
] | true | false | false | false | sha256:1fac7b0d45d071e444238ea9eb3e47df0c167364e13f77cfc1bf7729bcf6108a | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | diff_with_context | 0 | f25c00eee3298ee5acc97cccf9389c60eae51691442e3e0abc34841fd61670d0 | @@ -229,25 +247,25 @@ module.exports.getPodcastFeed = (feedUrl, excludeEpisodeMetadata = false) => {
data.data = data.data.toString()
}
if (!data?.data) {
Logger.error(`[podcastUtils] getPodcastFeed: Invalid podcast feed request response (${feedUrl})`)
- return false
+ return null
... | @@ -229,25 +247,25 @@ module.exports.getPodcastFeed = (feedUrl, excludeEpisodeMetadata = false) => { data.data = data.data.toString() } if (!data?.data) { Logger.error(`[podcastUtils] getPodcastFeed: Invalid podcast feed request response (${feedUrl})`) - return false + return null } Logger.debug(`[podcastUtils] getPodc... | 5,444 | 6,437 | 5,444 | 6,437 | sha256:c1e49340eb7d34c7e01d03b666988457db432f89c295ea484f5cb24f8c92b74b | 1b5612c20599d36eef98e95a6ae5bb6787f7ffc14f05f80d2ddd941bae8abfad | diff_hunk | context_required | false | 109 | 993 | true | [
"requires_file_context"
] | true | false | false | false | sha256:1fac7b0d45d071e444238ea9eb3e47df0c167364e13f77cfc1bf7729bcf6108a | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | fixed_code | 0 | 4df7f84c290714bc1505e2661871cac47ef2774a6977a7759cf04b0b1e8e8127 | const { validateUrl } = require('../utils/index')
/**
* POST: /api/podcasts/feed
*
* @typedef getPodcastFeedReqBody
* @property {string} rssFeed
*
* @param {import('express').Request<{}, {}, getPodcastFeedReqBody, {}} req
* @param {import('express').Response} res
*/
const url = validat... | const { validateUrl } = require('../utils/index') /** * POST: /api/podcasts/feed * * @typedef getPodcastFeedReqBody * @property {string} rssFeed * * @param {import('express').Request<{}, {}, getPodcastFeedReqBody, {}} req * @param {import('express').Response} res */ const url = validateUrl(req.body.rssFeed) return res.... | 0 | 1,553 | 0 | 1,553 | sha256:3b8e4dedc06f3811a748376ab5549d1c841206912b4611c9af4352f05a6e39fe | 4df7f84c290714bc1505e2661871cac47ef2774a6977a7759cf04b0b1e8e8127 | code_context | context_required | false | 188 | 1,553 | true | [
"requires_file_context"
] | true | false | false | false | sha256:c8e6e0358a17c16b49f3e6de364ab4f3cd6df45f802b1556b3939a1ce985c466 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreiau7vdylz7iyt2hrtkiasyew77x7kdtbyldu5p5c2hk6b5eh7qwk4 | vulnerable_code | 0 | cf6893d434da4119e457de408b462a3c4c529ad4014bb457b994e1e7e55255d6 | var url = req.body.rssFeed
return res.status(400).send('Bad request')
Array(str1.length + 1).fill(null));
track[0][i] = i;
track[j][0] = j;
const indicator = str1[i - 1] === str2[j - 1] ? 0 : 1;
);
return track[str2.length][str1.length];
const Logger = require('../Logger')
return a... | var url = req.body.rssFeed return res.status(400).send('Bad request') Array(str1.length + 1).fill(null)); track[0][i] = i; track[j][0] = j; const indicator = str1[i - 1] === str2[j - 1] ? 0 : 1; ); return track[str2.length][str1.length]; const Logger = require('../Logger') return axios.get(feedUrl, { timeout: 12000, re... | 0 | 508 | 0 | 508 | sha256:7848bb7e59430b11074732751a18b2cf7edc399baa548e9e68441c25bbac71ef | cf6893d434da4119e457de408b462a3c4c529ad4014bb457b994e1e7e55255d6 | code_context | context_required | false | 59 | 508 | true | [
"requires_file_context"
] | true | false | false | false | sha256:085c5d004c4327c508fa77a60dea6e7f921b59a3a90ac3a0b6958438fba8d3c1 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | commit_message | 0 | 724fa588513bfb359e9b69a7d8318f0df1c12aaaef23bdaac89f3d3b9c25f932 | Update:Disable epubs from running scripts by default, add library setting to enable it GHSA-7j99-76cj-q9pg | Update:Disable epubs from running scripts by default, add library setting to enable it GHSA-7j99-76cj-q9pg | 0 | 106 | 0 | 106 | sha256:446aded068e0658dd4237d163fd5bd79f42324ed012ad86bc55b5e34c759f5f4 | 476d6d5b9a9015904bfc7fda544ef75b46fc64e0ea32e7c63ddc8b876ba21331 | prose_sentence | candidate | true | 14 | 106 | false | [] | false | false | false | false | sha256:7e9beadb55bdf95745aa01c26bb4ce74f600a1473d54857e76da62c4d1bcdff1 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | commit_message | 0 | 724fa588513bfb359e9b69a7d8318f0df1c12aaaef23bdaac89f3d3b9c25f932 | 106 | 107 | 106 | 107 | sha256:f4ade70d3a3b232e9d8b74b3347e862654947d116d3ee8cedf58d2917a636cb2 | 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:7e9beadb55bdf95745aa01c26bb4ce74f600a1473d54857e76da62c4d1bcdff1 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | cve_description | 0 | 65b5aba2fd8be95b64d55f78cf390042b6465bc33514fbd7cc32cda8f772950e | Audiobookshelf is a self-hosted audiobook and podcast server. | Audiobookshelf is a self-hosted audiobook and podcast server. | 0 | 61 | 0 | 61 | sha256:99a8201eb54c5f4ed4bc334fd368b4ae83db9c7ce5cd357b2de25cdf17a8cd95 | 1d8eda2440f7d303d85bcf74b565584313ee50698873ef542babd383d2d239a8 | prose_sentence | candidate | true | 8 | 61 | false | [] | false | false | false | false | sha256:b98d615b621870928b3fd0c49d4a3e3d18ebaa97c2a8653961d73592b4408db0 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | cve_description | 0 | 65b5aba2fd8be95b64d55f78cf390042b6465bc33514fbd7cc32cda8f772950e | 61 | 62 | 61 | 62 | sha256:1fd0da09e23239961f195235b04628d5cbaa1dac3206ed32263e367739e44351 | 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:b98d615b621870928b3fd0c49d4a3e3d18ebaa97c2a8653961d73592b4408db0 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | cve_description | 0 | 65b5aba2fd8be95b64d55f78cf390042b6465bc33514fbd7cc32cda8f772950e | Prior to version 2.10.0, opening an ebook with malicious scripts inside leads to code execution inside the browsing context. | Prior to version 2.10.0, opening an ebook with malicious scripts inside leads to code execution inside the browsing context. | 62 | 186 | 62 | 186 | sha256:1d18c1f5a8e5288e873fd3fd61fe734fb9de0d92c6809dcd3483093275cf5e67 | 8557501bbcc263566a17c34848e55f598c6a6ccd76cf0cdcc67b01dada82f5e0 | prose_sentence | candidate | true | 19 | 124 | false | [] | false | false | false | false | sha256:b98d615b621870928b3fd0c49d4a3e3d18ebaa97c2a8653961d73592b4408db0 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | cve_description | 0 | 65b5aba2fd8be95b64d55f78cf390042b6465bc33514fbd7cc32cda8f772950e | 186 | 187 | 186 | 187 | sha256:08ccc23e20962eb4205e5ef3963239b502cfff9a75811a38eef602c88e42768e | 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:b98d615b621870928b3fd0c49d4a3e3d18ebaa97c2a8653961d73592b4408db0 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | cve_description | 0 | 65b5aba2fd8be95b64d55f78cf390042b6465bc33514fbd7cc32cda8f772950e | Attacking a user with high privileges (upload, creation of libraries) can lead to remote code execution (RCE) in the worst case. | Attacking a user with high privileges (upload, creation of libraries) can lead to remote code execution (RCE) in the worst case. | 187 | 315 | 187 | 315 | sha256:a4aecead198967e4c7b2161507c0c26c8108bebe95c54a0c25aa79cde6a82533 | 00b43d34fbaf148a336c6a581b204713fed11ff408c79211f17436ace8125bcc | prose_sentence | candidate | true | 21 | 128 | false | [] | false | false | false | false | sha256:b98d615b621870928b3fd0c49d4a3e3d18ebaa97c2a8653961d73592b4408db0 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | cve_description | 0 | 65b5aba2fd8be95b64d55f78cf390042b6465bc33514fbd7cc32cda8f772950e | 315 | 316 | 315 | 316 | sha256:1133094214dc3e14db8eb4297d4db2fafcdd69e5892bcb6f2a13e7780d81e371 | 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:b98d615b621870928b3fd0c49d4a3e3d18ebaa97c2a8653961d73592b4408db0 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | cve_description | 0 | 65b5aba2fd8be95b64d55f78cf390042b6465bc33514fbd7cc32cda8f772950e | This was tested on version 2.9.0 on Windows, but an arbitrary file write is powerful enough as is and should easily lead to RCE on Linux, too. | This was tested on version 2.9.0 on Windows, but an arbitrary file write is powerful enough as is and should easily lead to RCE on Linux, too. | 316 | 458 | 316 | 458 | sha256:df585d8e0a46a02f97c4501dab08bd0e08bac277bc02c89327e37bd69fd6e799 | f494a61942d5a6fd44f62a3cddd04e2a1d59388e6c0a8e63c5db38a0ebb4b2e3 | prose_sentence | candidate | true | 27 | 142 | false | [] | false | false | false | false | sha256:b98d615b621870928b3fd0c49d4a3e3d18ebaa97c2a8653961d73592b4408db0 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | cve_description | 0 | 65b5aba2fd8be95b64d55f78cf390042b6465bc33514fbd7cc32cda8f772950e | 458 | 459 | 458 | 459 | sha256:a605456fe7055e7d423e08227a8e49dd78ea084260a1aa7a8c202e7e1f299355 | 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 | whitespace | excluded_whitespace | false | 0 | 1 | false | [
"whitespace_only"
] | false | false | false | false | sha256:b98d615b621870928b3fd0c49d4a3e3d18ebaa97c2a8653961d73592b4408db0 | train | ||
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | cve_description | 0 | 65b5aba2fd8be95b64d55f78cf390042b6465bc33514fbd7cc32cda8f772950e | Version 2.10.0 contains a patch for the vulnerability. | Version 2.10.0 contains a patch for the vulnerability. | 459 | 513 | 459 | 513 | sha256:3c3e55aa74037d978841d2a8b50be8218b6f19a478a6712246879100e5a7948f | 14735a387d77350da1d92713d77d8fb0108bfd5b0db3398348e93f436f9a92f1 | prose_sentence | candidate | true | 8 | 54 | false | [] | false | false | false | false | sha256:b98d615b621870928b3fd0c49d4a3e3d18ebaa97c2a8653961d73592b4408db0 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | cwe_description | 0 | 9d7370b44a496a69d45888ddf8c93541e66772f80fcc51db027299df3c6c2ba2 | There is insufficient information about the issue to classify it; details are unkown or unspecified. | There is insufficient information about the issue to classify it; details are unkown or unspecified. | 0 | 100 | 0 | 100 | sha256:65c37c437182ec310e3dbe5e02fb7b9609ca7414dc2f2b8d1f330636b98c99ac | 9d7370b44a496a69d45888ddf8c93541e66772f80fcc51db027299df3c6c2ba2 | prose_sentence | excluded_cross_partition_duplicate | false | 15 | 100 | false | [
"cross_partition_duplicate"
] | false | false | false | false | sha256:3223a3c82567e4ceafc784d737dc11768ffb6273584ae05f50f464ba8329d411 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | diff --git a/client/components/modals/libraries/LibrarySettings.vue b/client/components/modals/libraries/LibrarySettings.vue
index 4183c4fe4..3808ed07b 100644
--- a/client/components/modals/libraries/LibrarySettings.vue
+++ b/client/components/modals/libraries/LibrarySettings.vue
| diff --git a/client/components/modals/libraries/LibrarySettings.vue b/client/components/modals/libraries/LibrarySettings.vue index 4183c4fe4..3808ed07b 100644 --- a/client/components/modals/libraries/LibrarySettings.vue +++ b/client/components/modals/libraries/LibrarySettings.vue | 0 | 281 | 0 | 281 | sha256:8ec30c42c4d880f8cac18ed7c669145969ea38ba03b109ae4da936417873f241 | 2ac013b14fbbf39c3766f929bb8e8917a0c23a775d7df5f93b1b5f0df74af495 | diff_context | context_required | false | 11 | 281 | false | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -58,10 +58,21 @@
<span class="material-icons icon-text text-sm">info_outlined</span>
</p>
</ui-tooltip>
</div>
</div>
+ <div v-if="isBookLibrary" class="py-3">
+ <div class="flex items-center">
+ <ui-toggle-switch v-model="epubsAllowScriptedContent" @input=... | @@ -58,10 +58,21 @@ <span class="material-icons icon-text text-sm">info_outlined</span> </p> </ui-tooltip> </div> </div> + <div v-if="isBookLibrary" class="py-3"> + <div class="flex items-center"> + <ui-toggle-switch v-model="epubsAllowScriptedContent" @input="formUpdated" /> + <ui-tooltip :text="$strings.LabelSettings... | 281 | 1,235 | 281 | 1,235 | sha256:65275f41279acdcf0a1d255127c254bbc2ca239d218511f051322f62c3dab28d | bcd58a474e8b574e8b77bbdc49a550934aae7477ff6b0ceeeb39ee47116f51eb | diff_hunk | context_required | false | 64 | 954 | true | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -81,10 +92,11 @@ export default {
useSquareBookCovers: false,
enableWatcher: false,
skipMatchingMediaWithAsin: false,
skipMatchingMediaWithIsbn: false,
audiobooksOnly: false,
+ epubsAllowScriptedContent: false,
hideSingleBookSeries: false,
onlyShowLaterBooksInCon... | @@ -81,10 +92,11 @@ export default { useSquareBookCovers: false, enableWatcher: false, skipMatchingMediaWithAsin: false, skipMatchingMediaWithIsbn: false, audiobooksOnly: false, + epubsAllowScriptedContent: false, hideSingleBookSeries: false, onlyShowLaterBooksInContinueSeries: false, podcastSearchRegion: 'us' } }, | 1,235 | 1,621 | 1,235 | 1,621 | sha256:c29763e958c33896d82d43490e47593410c0ef938fd1a4d8cced5534833985cd | 9017d41caf7146cacb23624669aa6fe7c3d0272778fd4fe32a50d71574639d9f | diff_hunk | context_required | false | 28 | 386 | false | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -116,10 +128,11 @@ export default {
coverAspectRatio: this.useSquareBookCovers ? this.$constants.BookCoverAspectRatio.SQUARE : this.$constants.BookCoverAspectRatio.STANDARD,
disableWatcher: !this.enableWatcher,
skipMatchingMediaWithAsin: !!this.skipMatchingMediaWithAsin,
s... | @@ -116,10 +128,11 @@ export default { coverAspectRatio: this.useSquareBookCovers ? this.$constants.BookCoverAspectRatio.SQUARE : this.$constants.BookCoverAspectRatio.STANDARD, disableWatcher: !this.enableWatcher, skipMatchingMediaWithAsin: !!this.skipMatchingMediaWithAsin, skipMatchingMediaWithIsbn: !!this.skipMatchin... | 1,621 | 2,352 | 1,621 | 2,352 | sha256:3f92babda478ccd410a3612f195cbec881c08a9540433d09827e973529cd06f6 | 0a7d07b6b9501182d63d00a170615bfbb62d85c41644d7f30ff22af06bcc98e9 | diff_hunk | context_required | false | 32 | 731 | false | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -131,15 +144,16 @@ export default {
this.useSquareBookCovers = this.librarySettings.coverAspectRatio === this.$constants.BookCoverAspectRatio.SQUARE
this.enableWatcher = !this.librarySettings.disableWatcher
this.skipMatchingMediaWithAsin = !!this.librarySettings.skipMatchingMediaWithAsin
... | @@ -131,15 +144,16 @@ export default { this.useSquareBookCovers = this.librarySettings.coverAspectRatio === this.$constants.BookCoverAspectRatio.SQUARE this.enableWatcher = !this.librarySettings.disableWatcher this.skipMatchingMediaWithAsin = !!this.librarySettings.skipMatchingMediaWithAsin this.skipMatchingMediaWithIs... | 2,352 | 3,282 | 2,352 | 3,282 | sha256:3dd1de3fdbeab0bd7c8263bac3726827b055318ad62204c062375b5c0c1542c2 | f7ce3af59aa6379de01082b25beca3b09e7238193e441fa97cdedd8bf1e0e213 | diff_hunk | context_required | false | 55 | 930 | true | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | diff --git a/client/components/readers/EpubReader.vue b/client/components/readers/EpubReader.vue
index 3941c0d81..819f5beb1 100644
--- a/client/components/readers/EpubReader.vue
+++ b/client/components/readers/EpubReader.vue
| diff --git a/client/components/readers/EpubReader.vue b/client/components/readers/EpubReader.vue index 3941c0d81..819f5beb1 100644 --- a/client/components/readers/EpubReader.vue +++ b/client/components/readers/EpubReader.vue | 3,282 | 3,507 | 3,282 | 3,507 | sha256:2004d761ac2827a8e5196138cd67bce670af90507294ddb862b586946fed1430 | 3cc78ef3d8b64c257ba9afc82624f522252805755c4e0285020c0e8bbb6cb7cf | diff_context | context_required | false | 11 | 225 | false | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -61,10 +61,13 @@ export default {
},
/** @returns {string} */
libraryItemId() {
return this.libraryItem?.id
},
+ allowScriptedContent() {
+ return this.$store.getters['libraries/getLibraryEpubsAllowScriptedContent']
+ },
hasPrev() {
return !this.rendition?.location?.... | @@ -61,10 +61,13 @@ export default { }, /** @returns {string} */ libraryItemId() { return this.libraryItem?.id }, + allowScriptedContent() { + return this.$store.getters['libraries/getLibraryEpubsAllowScriptedContent'] + }, hasPrev() { return !this.rendition?.location?.atStart }, hasNext() { return !this.rendition?.loc... | 3,507 | 3,907 | 3,507 | 3,907 | sha256:a16abd821ae9c93864165b738fb314e9ec51cfb131ad1270e0fc4f2bee8d8198 | 8154bd3065b8597bb9b7235b276bf136344796cecdb467678cc99ed617394018 | diff_hunk | context_required | false | 34 | 400 | false | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -314,11 +317,11 @@ export default {
/** @type {ePub.Rendition} */
reader.rendition = reader.book.renderTo('viewer', {
width: this.readerWidth,
height: this.readerHeight * 0.8,
- allowScriptedContent: true,
+ allowScriptedContent: this.allowScriptedContent,
spr... | @@ -314,11 +317,11 @@ export default { /** @type {ePub.Rendition} */ reader.rendition = reader.book.renderTo('viewer', { width: this.readerWidth, height: this.readerHeight * 0.8, - allowScriptedContent: true, + allowScriptedContent: this.allowScriptedContent, spread: 'auto', snap: true, manager: 'continuous', flow: 'pa... | 3,907 | 4,330 | 3,907 | 4,330 | sha256:6619460cd8350cb363350a3944221b93159e21b2b0cf62cf382580afc1b1aedb | 16df2fd022953bdeef9024cf7bec76fe8833e7beaa0d7f9bee1e710c670de686 | diff_hunk | context_required | false | 36 | 423 | false | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | diff --git a/client/store/libraries.js b/client/store/libraries.js
index 1d13d6322..f56bdad67 100644
--- a/client/store/libraries.js
+++ b/client/store/libraries.js
| diff --git a/client/store/libraries.js b/client/store/libraries.js index 1d13d6322..f56bdad67 100644 --- a/client/store/libraries.js +++ b/client/store/libraries.js | 4,330 | 4,495 | 4,330 | 4,495 | sha256:ee1cddff371a59344c59b8d51d1a80da5ba139d7d0b967fd71a21441aa0bc093 | 003600f404838ecb52a16ac4eb3bd14e4c238fd80abb8a997484dc6e971bc83b | diff_context | context_required | false | 11 | 165 | false | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -14,27 +14,27 @@ export const state = () => ({
userPlaylists: [],
ereaderDevices: []
})
export const getters = {
- getCurrentLibrary: state => {
- return state.libraries.find(lib => lib.id === state.currentLibraryId)
+ getCurrentLibrary: (state) => {
+ return state.libraries.find((lib) => lib.id ==... | @@ -14,27 +14,27 @@ export const state = () => ({ userPlaylists: [], ereaderDevices: [] }) export const getters = { - getCurrentLibrary: state => { - return state.libraries.find(lib => lib.id === state.currentLibraryId) + getCurrentLibrary: (state) => { + return state.libraries.find((lib) => lib.id === state.currentLib... | 4,495 | 5,899 | 4,495 | 5,899 | sha256:a8bae72e7143d4f252465b5d845fd371206303ecc6e0872f47bc56813a9e89c4 | 0b0475b70f038b0d55fee2135b3a992be0f0a6e7256a6022f1849c88836493fb | diff_hunk | context_required | false | 163 | 1,404 | true | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -58,26 +58,30 @@ export const getters = {
return getters.getCurrentLibrarySettings.coverAspectRatio === Constants.BookCoverAspectRatio.STANDARD ? 1.6 : 1
},
getLibraryIsAudiobooksOnly: (state, getters) => {
return !!getters.getCurrentLibrarySettings?.audiobooksOnly
},
- getCollection: state => id... | @@ -58,26 +58,30 @@ export const getters = { return getters.getCurrentLibrarySettings.coverAspectRatio === Constants.BookCoverAspectRatio.STANDARD ? 1.6 : 1 }, getLibraryIsAudiobooksOnly: (state, getters) => { return !!getters.getCurrentLibrarySettings?.audiobooksOnly }, - getCollection: state => id => { - return state... | 5,899 | 7,247 | 5,899 | 7,247 | sha256:7f1e566f63ee2d6eade35e1a19c1b0b6306a8bc7ae6c94de5fd368f823608215 | c0f63fc7cdfc214b059a5f8f9be63d4618a4217fcef404f233d8f458db40091a | diff_hunk | context_required | false | 164 | 1,348 | true | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -202,11 +206,11 @@ export const mutations = {
state.listeners.forEach((listener) => {
listener.meth()
})
},
addUpdate(state, library) {
- var index = state.libraries.findIndex(a => a.id === library.id)
+ var index = state.libraries.findIndex((a) => a.id === library.id)
if (index >= ... | @@ -202,11 +206,11 @@ export const mutations = { state.listeners.forEach((listener) => { listener.meth() }) }, addUpdate(state, library) { - var index = state.libraries.findIndex(a => a.id === library.id) + var index = state.libraries.findIndex((a) => a.id === library.id) if (index >= 0) { state.libraries.splice(index,... | 7,247 | 7,679 | 7,247 | 7,679 | sha256:f1d270d36fc0c17cf445d3e69e8a138ec7e03ff8f120be067a708856d4312f16 | 1a0836056984d5c15e7c35677e6cc9d852814d6add92e981461895c440c2ec4b | diff_hunk | context_required | false | 49 | 432 | true | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -214,33 +218,33 @@ export const mutations = {
state.listeners.forEach((listener) => {
listener.meth()
})
},
remove(state, library) {
- state.libraries = state.libraries.filter(a => a.id !== library.id)
+ state.libraries = state.libraries.filter((a) => a.id !== library.id)
state.li... | @@ -214,33 +218,33 @@ export const mutations = { state.listeners.forEach((listener) => { listener.meth() }) }, remove(state, library) { - state.libraries = state.libraries.filter(a => a.id !== library.id) + state.libraries = state.libraries.filter((a) => a.id !== library.id) state.listeners.forEach((listener) => { list... | 7,679 | 9,191 | 7,679 | 9,191 | sha256:c196dc42e8fde441e8b8f03e92b4e594ebc98e5da09715222d0f80317197e3de | 06656cd460fb452d2c83ab8c74e78001ec6298c9d4bf3dbde94ba5d8fed8f450 | diff_hunk | context_required | false | 144 | 1,512 | true | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -258,29 +262,29 @@ export const mutations = {
const mediaMetadata = libraryItem.media.metadata
// Add/update book authors
if (mediaMetadata.authors?.length) {
mediaMetadata.authors.forEach((author) => {
- const indexOf = state.filterData.authors.findIndex(au => au.id === author.id)
+ ... | @@ -258,29 +262,29 @@ export const mutations = { const mediaMetadata = libraryItem.media.metadata // Add/update book authors if (mediaMetadata.authors?.length) { mediaMetadata.authors.forEach((author) => { - const indexOf = state.filterData.authors.findIndex(au => au.id === author.id) + const indexOf = state.filterData... | 9,191 | 10,725 | 9,191 | 10,725 | sha256:a6459e1b0dc39f0df23b888ba3b74a3c41b1b3dbd649ba5c9f89770050614165 | 517cad526f856606827c0bb9c731dd0daf8010c690c1fa99df3b50ec0d60d0da | diff_hunk | context_required | false | 147 | 1,534 | true | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -327,36 +331,36 @@ export const mutations = {
},
setCollections(state, collections) {
state.collections = collections
},
addUpdateCollection(state, collection) {
- var index = state.collections.findIndex(c => c.id === collection.id)
+ var index = state.collections.findIndex((c) => c.id === col... | @@ -327,36 +331,36 @@ export const mutations = { }, setCollections(state, collections) { state.collections = collections }, addUpdateCollection(state, collection) { - var index = state.collections.findIndex(c => c.id === collection.id) + var index = state.collections.findIndex((c) => c.id === collection.id) if (index >... | 10,725 | 12,312 | 10,725 | 12,312 | sha256:8a25e6b5eb6bd8a5e8e91a3b912ea87f570d41ee8fe9ae07a8fdc7517aebbc65 | cf24c1324e7f694e7bc2a50a9c1ad3ee21af98808b33b7b0a196dd4d83b2edcc | diff_hunk | context_required | false | 157 | 1,587 | true | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | diff --git a/client/strings/bg.json b/client/strings/bg.json
index f8c9c5948..0858856e4 100644
--- a/client/strings/bg.json
+++ b/client/strings/bg.json
| diff --git a/client/strings/bg.json b/client/strings/bg.json index f8c9c5948..0858856e4 100644 --- a/client/strings/bg.json +++ b/client/strings/bg.json | 12,312 | 12,465 | 12,312 | 12,465 | sha256:f6b0b33d5719a4a399fb801ea9d59d04a05d010ad34fbf5312cd12ae23243939 | e5d123f7091c77e57667d548462e00d445ddc9571f1b0e416723a0eb0de41d87 | diff_context | context_required | false | 11 | 153 | false | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -469,10 +469,12 @@
"LabelSettingsDisableWatcherForLibrary": "Изключи наблюдателя за библиотека",
"LabelSettingsDisableWatcherHelp": "Изключва автоматичното добавяне/обновяване на елементи, когато се открият промени във файловете. *Изисква рестарт на сървъра",
"LabelSettingsEnableWatcher": "Включи наблюдател... | @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Изключи наблюдателя за библиотека", "LabelSettingsDisableWatcherHelp": "Изключва автоматичното добавяне/обновяване на елементи, когато се открият промени във файловете. *Изисква рестарт на сървъра", "LabelSettingsEnableWatcher": "Включи наблюдателя", "Labe... | 12,465 | 13,852 | 12,465 | 14,423 | sha256:53c81e2e9aa23894c29479ffc18cd17462aa835f70fe39a935bb64d3145b9977 | de1710f12f108fd62c4d11cdcefdd9bc7a52ddc74237f98603074c3d76c55a5f | diff_hunk | context_required | false | 139 | 1,387 | true | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | diff --git a/client/strings/bn.json b/client/strings/bn.json
index 07e226a8b..89fe78fef 100644
--- a/client/strings/bn.json
+++ b/client/strings/bn.json
| diff --git a/client/strings/bn.json b/client/strings/bn.json index 07e226a8b..89fe78fef 100644 --- a/client/strings/bn.json +++ b/client/strings/bn.json | 13,852 | 14,005 | 14,423 | 14,576 | sha256:b0d29fc805154c8e395e7ac77aad24e31b492e62e9ea9e5f70863a9c21cca844 | bb2a19a1788e60ca8b19232e8a1e6e2fb93bb13765a52bbd4a03827721565536 | diff_context | context_required | false | 11 | 153 | false | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
security-ir-source-span/v1 | cvefixes-security-source-spans/v1 | bafkreicoocinbur4v2tkzzz6frby2quasyzycyxbz4btin63wg6glnk5g4 | diff_with_context | 0 | bd13d4274988f982a99af96eba34f7c5bb1b114bcd4fd46f840ee0e9c6810df0 | @@ -469,10 +469,12 @@
"LabelSettingsDisableWatcherForLibrary": "লাইব্রেরির জন্য ফোল্ডার প্রহরী নিষ্ক্রিয় করুন",
"LabelSettingsDisableWatcherHelp": "ফাইলের পরিবর্তন শনাক্ত হলে স্বয়ংক্রিয়ভাবে আইটেম যোগ/আপডেট করা অক্ষম করবে। *সার্ভার পুনরায় চালু করতে হবে",
"LabelSettingsEnableWatcher": "প্রহরী সক্ষম করুন",
... | @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "লাইব্রেরির জন্য ফোল্ডার প্রহরী নিষ্ক্রিয় করুন", "LabelSettingsDisableWatcherHelp": "ফাইলের পরিবর্তন শনাক্ত হলে স্বয়ংক্রিয়ভাবে আইটেম যোগ/আপডেট করা অক্ষম করবে। *সার্ভার পুনরায় চালু করতে হবে", "LabelSettingsEnableWatcher": "প্রহরী সক্ষম করুন", "LabelSetti... | 14,005 | 15,367 | 14,576 | 17,054 | sha256:8e9e972c4d3d37ca1002828623a5323322c6a4f97daaccea696406c119f6c4a7 | 0116b2112c9dd278fcaf39f67ae1c6c18163de4f1cfb74720e3cf275340bf36c | diff_hunk | context_required | false | 141 | 1,362 | true | [
"requires_file_context"
] | true | false | false | false | sha256:90501b84551b11b506a20177223644da472685c21bb41239b7b952c75b9662d4 | train |
CVEfixes Security source spans
This dataset contains exact, source-bound prose, code, and diff spans derived
from the original-data configuration of
Publicus/cvefixes-security-ir-graphrag at revision 6fd5918bed34f8851430e74a149502587a953fe2.
The underlying source is hitoshura25/cvefixes at revision
d4f5c4ea65329d9ccbb8a3b3149e5d06eda5edb2.
The extraction considered all 12,987 original rows across all three shards. It retained 9,402 source rows and excluded 3,585. The release contains 197,031 spans from 52,243 source fields, preserving 169,810,611 UTF-8 bytes. Source code is retained as context; this is preparation data for SecurityIR work, with zero gold formal-logic targets. No training, LLM calls, prover execution, or source-code execution occurred.
| Table | Development split | Rows |
|---|---|---|
| exclusions | train | 3,585 |
| records | test | 875 |
| records | train | 7,787 |
| records | validation | 740 |
| sources | test | 4,942 |
| sources | train | 43,223 |
| sources | validation | 4,078 |
| spans | test | 18,394 |
| spans | train | 162,457 |
| spans | validation | 16,180 |
Selection and exclusions
The complete original shards were checked against the immutable release's SHA-256 hashes, sizes, and row counts. Retained records also pass the native row adapter, reproduce the source CID in the original-row routing index, and have zero findings from the native CVEfixes scanner across the complete adapted row. The scan covers source metadata and body fields together.
Exclusions include 273 upstream rejection tombstones, 23 rows with diffs above
the configured size bound, the known bottlepy/bottle benchmark repository row,
screening findings for email addresses (3,284 rows) or phone-like strings
(6 rows), and two rows with unsupported NUL bytes in code. Reason counts can
overlap. Each excluded row has a body-free record in the exclusions table.
The scanner is a deterministic heuristic, not a guarantee that all sensitive
material can be detected.
The adapter allows at most 2,097,152 Unicode characters per code/diff field and 4,194,304 characters across an adapted row, plus the native metadata/description bounds. Oversized source records are excluded explicitly; source text is never shortened to make a record pass. Segmentation retains oversize sentences and code contexts from accepted records and marks their limits.
This is a separate screened source-span export. The original SecurityIR
public metadata profile remains digest-only. Its prior admitted status by
itself does not authorize publishing source bodies: that profile can omit bodies
with personal-data findings. This export requires an additional zero-finding
scan before retaining any source text.
Text and code boundaries
Prose fields (cve_description, cwe_description, and commit_message) reuse
the shared uscode-whitespace-punctuation/v1 sentence policy from the
US Code span cache
and the SkillCenter span release.
Whitespace intervals remain explicit so the exact field can be reconstructed.
The simple punctuation policy retains its known abbreviation limitations.
vulnerable_code and fixed_code are preserved as whole-body context spans.
These upstream strings can be fragments or concatenations from multiple files;
they are not asserted to be complete files, functions, or compilation units.
The original file_paths list is preserved without inventing a single-file
mapping. Diffs are divided at unified-diff hunk boundaries while preserving
headers, gaps, and every source character. Hunk classification does not prove
that a diff applies or that a repair is correct.
Localized CVE descriptions are decoded with the native bounded adapter. Each value retains its language and list index, together with the SHA-256 of the original serialized description field. Span character and UTF-8 byte offsets refer to the decoded value, not offsets in that serialized container.
Raw text is exact. normalized_text is an auxiliary whitespace-normalized
representation; it must not replace code when parsing, compiling, or validating
behavior. Prose candidate limits are 48 words and 4,096 characters. Code and
diff spans always require context. Candidate eligibility permits an attempt to
derive a target; it is not a reviewed instruction-to-logic label.
Development partitions
Repository families, CVEs, commits, and exact nonempty code-body duplicates are connected before assigning development splits. Both vulnerable and fixed material remain in the same component. Repeated normalized prose candidates that cross partitions are marked ineligible without deleting their source text. These checks do not establish semantic or near-duplicate independence.
All upstream rows come from a public training split. The new splits are for development and are not a hidden benchmark or an independent generalization test. Excluding the known Bottle repository is not complete benchmark decontamination; downstream experiments need their own contamination checks. CVE/CWE and vulnerable/fixed labels are inherited row-level annotations and are not proof about each extracted span.
Loading and provenance
All four table configurations are declared in the dataset card metadata.
The Parquet tables are records, sources, spans, and exclusions.
Nested metadata is serialized in JSON columns to preserve exact structure.
records retains source-row provenance and the row template;
sources contains exact field values; spans contains their selectors and
context/eligibility annotations. exclusions contains identifiers and reasons
without rejected body text. The original full shards are not republished here.
from datasets import load_dataset
spans = load_dataset("Publicus/cvefixes-security-autoformal-span-cache", "spans")
sources = load_dataset("Publicus/cvefixes-security-autoformal-span-cache", "sources")
Pass the same immutable Hub commit as revision to every load for reproducible
results. manifest.json records the exact file allowlist and hashes, original
source revisions/shard pins, scanner and span producer identities, coverage,
exclusions, and partition policy.
Download a pinned snapshot into a materialized directory, then verify it with:
python -m pip install pyarrow
python verify_release.py .
Verification checks the published file hashes, source/span identities, field reconstruction, character and UTF-8 offsets, counts, and development split constraints. These consistency checks do not establish formal correctness, repository licensing, or absence of every possible sensitive string.
Attribution and use
The upstream dataset declares Apache-2.0 and its immutable release records a redistribution review. Embedded source code comes from many repositories; repository-specific obligations remain applicable and have not been individually re-audited for this extraction. See LICENSES.md, the preserved repository URL, commit, paths, and upstream provenance for each record.
Source data remains inert and untrusted. Extracted text grants no tool, repair, policy, proof, or execution authority. No supervisor benchmark improvement or arbitrary software-to-formal-logic capability is claimed by this release. Extraction uses ipfs_datasets_py.
- Downloads last month
- -