# On Security Vulnerabilities: n doesn't match

**URL:** <https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340>\
**Category:** Help / Discuss\
**Created:** [August 14, 2024, 7:00am UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340 "2024-08-14T07:00:19Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricardo\_Rodriguez](https://forum.xwiki.org/user_avatar/forum.xwiki.org/ricardo_rodriguez/32/3454_2.png) [@Ricardo\_Rodriguez](https://forum.xwiki.org/u/Ricardo_Rodriguez)\
**Post date:** [August 14, 2024, 7:00am UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/1 "2024-08-14T07:00:19Z")

</div>

Hi! I’m aware of this [topic](https://forum.xwiki.org/t/security-vulnerabilities-application-improvement-to-make-it-recommended-again/14080/7) and about [August 2024 roadmap](https://forum.xwiki.org/t/roadmap-for-august-2024/15227). It seems that Security Vulnerabilities application is under active development. I’m just posting to add a description of a behavior I’m not able to explain to the information systems security officers here.

The red bell on the navigation bar says that the scan has identified two (2) extensions with known vulnerabilities, but the list includes only one (1):

 ![image](https://forum.xwiki.org/uploads/default/original/2X/d/dd81df28ba6792dc73493c2338b6523c52666ac6.png)

&nbsp;  
Also, two (2) is not the number of environment vulnerabilities. Three (3) are in the list:

![image](https://forum.xwiki.org/uploads/default/original/2X/5/53c0925c14886c9d17af29278543ff180ee54ca3.png)

&nbsp;  
Why does the red bell say two (2), please?

Both images above were screenshotted yesterday. Today, after a new indexing cycle, we get the same results.

I need to cope with **Security Vulnerabilities application** if I want to promote the XWiki use at my current institution. The team is far from being opened to accept alternatives to the tools we are currently using, and we have had huge security issues that paralyzed the center for weeks, even months. It is completely out of my scope to analyze the reasons of that situation, but I can propose solutions for cases of use. XWiki is great from many points of view. But it is for me even more valuable its team and the way you and the community address issues and new developments.

As always, thanks!

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [August 14, 2024, 7:14am UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/2 "2024-08-14T07:14:04Z")

</div>

2 is actually the number of vulnerabilities which **don’t have an explanation to suggest XWiki is not actually impacted** (so kind of unknown known vulnerabilities, “known” in this context just referring to the fact that they are public in the database of CVEs, but we sometimes don’t know about them ourselves yet).

I agree with you that the separation is really not clear in the UI (the only difference, I think, is that the “analyzed” ones have a little document icon next to the CVE), and that’s one of the reasons why we decided to spend more time on this UI before enabling it by default.

By the way, I’m surprised by this `snappy` report. Is this extension coming as a dependency of some extension you installed (you can check that in the Extension Manager by checking the dependency tab in the detail of the snappy installed extension) ? That would be something to fix in that extension.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Rodriguez](https://forum.xwiki.org/user_avatar/forum.xwiki.org/ricardo_rodriguez/32/3454_2.png) [@Ricardo\_Rodriguez](https://forum.xwiki.org/u/Ricardo_Rodriguez)\
**Post date:** [August 14, 2024, 7:51am UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/3 "2024-08-14T07:51:50Z")

</div>

> [@tmortagne](#):
>
> 2 is actually the number of vulnerabilities which **don’t have an explanation to suggest XWiki is not actually impacted** (so kind of unknown known vulnerabilities, “known” in this context just referring to the fact that they are public in the database of CVEs, but we sometimes don’t know about them ourselves yet).

Cool! It is much clearer to me now. I will survive with this explanation. Thanks!

> [@tmortagne](#):
>
> I agree with you that the separation is really not clear in the UI (the only difference, I think, is that the “analyzed” ones have a little document icon next to the CVE), and that’s one of the reasons why we decided to spend more time on this UI before enabling it by default.

Things are clearer to me know after expending some time reading other topics and papers and your first paragraph above. I will keep a close eye on new developments

> [@tmortagne](#):
>
> By the way, I’m surprised by this `snappy` report. Is this extension coming as a dependency of some extension you installed (you can check that in the Extension Manager by checking the dependency tab in the detail of the snappy installed extension) ? That would be something to fix in that extension.

Following your explanation, I get deeper on the vulnerabilities’ correction process and update `snappy` to release 0.5. The red bell shows now only one (1) environment vulnerability `(org.webjars:bootstrap/3.4.1`). `snappy` is no longer in the list.

Here what I get concerning dependencies:

![image](https://forum.xwiki.org/uploads/default/original/2X/6/655381781ee1ce2bcd785be761acaf53ca72693d.png)

&nbsp;  
Let me know if I can be of any further help!

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [August 14, 2024, 7:54am UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/4 "2024-08-14T07:54:55Z")

</div>

> [@Ricardo\_Rodriguez](#):
>
> Let me know if I can be of any further help!

It would be great if you could go up the hierarchy of dependencies to find the top level extension which triggered this dependency to this vulnerable snappy (so click on `Plexus Archiver Component`, which is itself something that was installed as dependency, check its backward dependencies, etc. and yes this search is also something we want to add in this UI before enabling it by default).

---

<div class="post-metadata">

**Author:** ![Ricardo\_Rodriguez](https://forum.xwiki.org/user_avatar/forum.xwiki.org/ricardo_rodriguez/32/3454_2.png) [@Ricardo\_Rodriguez](https://forum.xwiki.org/u/Ricardo_Rodriguez)\
**Post date:** [August 14, 2024, 8:17am UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/5 "2024-08-14T08:17:45Z")

</div>

`snappy 0.5` \< `Plexus Archiver Component 4.8.0` \< `LaTeX Exporter 1.25`

![image](https://forum.xwiki.org/uploads/default/original/2X/9/9e28eb6d15352fb23b14cf3266ee88efdeb9ed72.png)

&nbsp;  
🙂

I updated `snappy 0.4` to` 0.5`. I see that there are new versions of `Plexus Archiver Component` (up to `4.10.0`), must I update it?

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [August 14, 2024, 8:54am UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/6 "2024-08-14T08:54:01Z")

</div>

> [@Ricardo\_Rodriguez](#):
>
> must I update it?

“must”, not. It’s generally even a bit risky to upgrade a dependency unless you know for sure it’s retro compatible (it might break the top level extension, which was not really tested with it).

Anyway, I’m going to check how to update those dependencies in LaTeX Exporter itself so that a user who install it does not end up with a vulnerable dependency. I’m actually a bit surprised it needs `Plexus Archiver` at runtime at all.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Rodriguez](https://forum.xwiki.org/user_avatar/forum.xwiki.org/ricardo_rodriguez/32/3454_2.png) [@Ricardo\_Rodriguez](https://forum.xwiki.org/u/Ricardo_Rodriguez)\
**Post date:** [August 14, 2024, 9:09am UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/7 "2024-08-14T09:09:49Z")

</div>

Thanks! I’ll be glad to perform any test on this side. LaTeX Exporter can be a game changer here.

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [August 14, 2024, 11:09am UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/8 "2024-08-14T11:09:12Z")

</div>

LaTeX Exporter 1.25.1 is now available, I only upgraded `snappy` to be safe. `Plexus Archiver` might have caused problems on older version of XWiki for now.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Rodriguez](https://forum.xwiki.org/user_avatar/forum.xwiki.org/ricardo_rodriguez/32/3454_2.png) [@Ricardo\_Rodriguez](https://forum.xwiki.org/u/Ricardo_Rodriguez)\
**Post date:** [August 14, 2024, 12:08pm UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/9 "2024-08-14T12:08:08Z")

</div>

Updated!

![image](https://forum.xwiki.org/uploads/default/original/2X/9/98ecb08a5ebd46ae68d105af359df8f476552686.png)

&nbsp;  
Must I be able to find release `1.25.1` when looking for available extensions? It shows `1.25.1` installed, but `1.25` available.

Thanks!

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [August 14, 2024, 1:16pm UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/10 "2024-08-14T13:16:02Z")

</div>

> [@Ricardo\_Rodriguez](#):
>
> It shows `1.25.1` installed, but `1.25` available.

Your local index of available extensions might not be up-to-date (it’s supposed to refresh every 1 or 2h, I don’t remember), you can force refreshing it below the list.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Rodriguez](https://forum.xwiki.org/user_avatar/forum.xwiki.org/ricardo_rodriguez/32/3454_2.png) [@Ricardo\_Rodriguez](https://forum.xwiki.org/u/Ricardo_Rodriguez)\
**Post date:** [August 14, 2024, 4:34pm UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/11 "2024-08-14T16:34:48Z")

</div>

![image](https://forum.xwiki.org/uploads/default/original/2X/f/f9c1e191cadf927038e05282c595679c463e7a5e.png)

More than three hours after you make `1.25.1` available, it seems that the local index of available extensions has not updated yet. I will keep checking now and them. Let me know if any other check can or must be done. Thanks!

---

<div class="post-metadata">

**Author:** ![Ricardo\_Rodriguez](https://forum.xwiki.org/user_avatar/forum.xwiki.org/ricardo_rodriguez/32/3454_2.png) [@Ricardo\_Rodriguez](https://forum.xwiki.org/u/Ricardo_Rodriguez)\
**Post date:** [August 19, 2024, 6:59am UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/12 "2024-08-19T06:59:44Z")

</div>

Hi! Results are still the same, listing version 1.25 as available. I reindexed a while ago:  
 ![image](https://forum.xwiki.org/uploads/default/original/2X/9/93443beae544bfea699606e9989b12c47332d024.png)  
Any idea? Thanks!

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [August 19, 2024, 7:14am UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/13 "2024-08-19T07:14:46Z")

</div>

It’s strange, sounds like a bug but would need to find the way to reproduce it. Would be great if you could create a BUG issue on [Loading...](https://jira.xwiki.org/browse/XWIKI) with everything you remember about what happen related to Latex Exporter (index when 1.25.1 did not exist, install 1.25, 1.25.1 was released, installed other things in between, etc.).

In the meantime, you can probably “fix” this that deleting the index and let XWiki recreate it from scratch. For that, you will need to:

- stop XWiki
- delete the `<permdir>/cache/solr/extension_index_9` (or `<permdir>/cache/solr/extension_index` for older versions of XWiki)
- start XWiki

---

<div class="post-metadata">

**Author:** ![Ricardo\_Rodriguez](https://forum.xwiki.org/user_avatar/forum.xwiki.org/ricardo_rodriguez/32/3454_2.png) [@Ricardo\_Rodriguez](https://forum.xwiki.org/u/Ricardo_Rodriguez)\
**Post date:** [August 19, 2024, 2:51pm UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/14 "2024-08-19T14:51:17Z")

</div>

Thanks. Before deleting anything, here what I found under `<permdir>/cache/solr/`:

```auto
root@IGFAE-MU-07-MacPro:/var/lib/xwiki/data/cache/solr# ls -l
total 16
drwxr-x--- 5 tomcat tomcat 4096 oct 5 2023 extension_index
drwxr-x--- 5 tomcat tomcat 4096 mar 26 09:22 extension_index_9
drwxr-x--- 5 tomcat tomcat 4096 oct 5 2023 search
drwxr-x--- 5 tomcat tomcat 4096 mar 26 09:22 search_9

```

**I have to delete both folders, haven’t I?** It seems that some changes were introduced between 5 October 2023 and 25 March this year. Could the presence of both folders affect the function of the index?

Thanks!

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [August 19, 2024, 3:02pm UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/15 "2024-08-19T15:02:59Z")

</div>

> [@Ricardo\_Rodriguez](#):
>
> Could the presence of both folders affect the function of the index?

No, `extension_index` is just a leftover of a migration (because you upgraded this instance), it’s not used. And yes, deleting it too is fine.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Rodriguez](https://forum.xwiki.org/user_avatar/forum.xwiki.org/ricardo_rodriguez/32/3454_2.png) [@Ricardo\_Rodriguez](https://forum.xwiki.org/u/Ricardo_Rodriguez)\
**Post date:** [August 19, 2024, 5:38pm UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/16 "2024-08-19T17:38:18Z")

</div>

It worked!

 ![image](https://forum.xwiki.org/uploads/default/original/2X/e/e672b353ec80d6d03eea35a837cc5e5c1186eafe.png)  
I will do my best to create the BUG issue, although I don’t remember what happened between the original install and the situation described in this topic.

Thanks

---

<div class="post-metadata">

**Author:** ![Ricardo\_Rodriguez](https://forum.xwiki.org/user_avatar/forum.xwiki.org/ricardo_rodriguez/32/3454_2.png) [@Ricardo\_Rodriguez](https://forum.xwiki.org/u/Ricardo_Rodriguez)\
**Post date:** [August 20, 2024, 7:12am UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/17 "2024-08-20T07:12:27Z")

</div>

> [@tmortagne](#):
>
> create a BUG issue

I hope it helps! [Loading...](https://jira.xwiki.org/browse/XWIKI-22432)

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [August 20, 2024, 7:26am UTC](https://forum.xwiki.org/t/on-security-vulnerabilities-n-doesnt-match/15340/18 "2024-08-20T07:26:34Z")

</div>

Thanks!
